Speckle Pattern Partitioning Method, Apparatus, Device, and Medium

By extracting and sorting the center position of speckle spots, the problem of difficulty in speckle partitioning is solved, and the rapid and accurate partitioning of speckle maps is achieved.

CN114862870BActive Publication Date: 2025-07-18KUNSHAN QIUTI PHOTOELECTRIC TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210370904.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-11
Publication Date
2025-07-18
Estimated Expiration
2042-04-11

AI Technical Summary

Technical Problem

In the prior art, due to the influence of dark current and nonlinear components inside the camera, the speckle energy distribution is quite different from the original signal, resulting in low speckle recognition and difficulty in speckle partitioning.

Method used

By obtaining the original speckle map, the speckle spots and centers are extracted, the center positions of m speckle spots are obtained, and the speckle maps are sorted according to the sorting results.

Benefits of technology

The rapid and accurate partitioning of speckle maps is achieved, the rapidity and accuracy of speckle partitioning are improved, and the problem of speckle partitioning difficulties in the prior art is solved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114862870B_ABST
    Figure CN114862870B_ABST
Patent Text Reader

Abstract

The present invention discloses a speckle pattern partitioning method, device, equipment and medium, wherein the method comprises: obtaining an original speckle pattern; performing extraction processing on speckle light points and light point centers of the original speckle pattern to obtain the central positions of m speckle light points, where m is a positive integer; sorting the central positions of the m speckle light points to obtain a sorting result; partitioning the original speckle pattern according to the sorting result to obtain n speckle regions, where n is a positive integer. By adopting the present invention, the technical problem of difficult speckle partitioning in the prior art can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of digital speckle, and in particular to a method, device, equipment and medium for partitioning a speckle pattern. Background Art

[0002] Digital speckle technology is a technology that uses the pixel values of a camera's Charge-coupled Device (CCD) to describe the speckle energy distribution. Its principle is to quantify the speckle energy and use image processing technology to quantitatively analyze the speckle technical parameters. The speckle energy center and speckle partitioning are important indicators among them.

[0003] However, it is found in practice that due to the influence of the internal dark current and non-linear components of the camera, there are significant differences between the speckle energy distribution and its morphology and the original signal. Especially when using a relatively poor camera for shooting, the signal-to-noise ratio is low, resulting in low speckle recognition and very difficult speckle partitioning. Summary of the Invention

[0004] Embodiments of the present application provide a method, device, equipment and medium for partitioning a speckle pattern, which solve the technical problem of difficult speckle partitioning in the prior art.

[0005] On the one hand, an embodiment of the present application provides a method for partitioning a speckle pattern, and the method includes:

[0006] Obtain an original speckle pattern;

[0007] Perform extraction processing on the speckle light points and the light point centers of the original speckle pattern to obtain the central positions of m speckle light points, where m is a positive integer;

[0008] Sort the central positions of the m speckle light points to obtain a sorting result;

[0009] Partition the original speckle pattern according to the sorting result to obtain n speckle regions, where n is a positive integer.

[0010] Optionally, the performing extraction processing on the speckle light points and the light point centers of the original speckle pattern to obtain the central positions of m speckle light points includes:

[0011] Perform binarization processing on the original speckle pattern to obtain a processed speckle pattern;

[0012] Perform noise removal on the processed speckle pattern to obtain a target speckle pattern;

[0013] Perform extraction processing on the speckle light points and the light point centers of the target speckle pattern to obtain the central positions of m speckle light points.

[0014] Optionally, the extraction process of speckle light points and the centers of the light points from the target speckle pattern to obtain the center positions of m speckle light points includes:

[0015] Extract the edge contours of the speckle light points in the target speckle pattern to obtain the edge contours of the m speckle light points;

[0016] Determine the center positions of the m speckle light points according to the edge contours of the m speckle light points.

[0017] Optionally, the extraction of the edge contours of the speckle light points in the target speckle pattern to obtain the edge contours of the m speckle light points includes:

[0018] Calculate the difference in pixel values of adjacent pixel points in the target speckle pattern in a preset first direction to obtain a first contour map;

[0019] Calculate the difference in pixel values of adjacent pixel points in the target speckle pattern in a preset second direction to obtain a second contour map;

[0020] Perform superposition processing on the first contour map and the second contour map to obtain an edge contour map, and the edge contour map includes the edge contours of the m speckle light points;

[0021] Obtain the edge contours of the m speckle light points according to the edge contour map.

[0022] Optionally, the determination of the center positions of the m speckle light points according to the edge contours of the m speckle light points includes:

[0023] Perform minimum circumscribed circle calculation on the edge contours of the m speckle light points to obtain the center positions of the m speckle light points.

[0024] Optionally, the noise removal of the processed speckle pattern to obtain the target speckle pattern includes:

[0025] Perform erosion and dilation processing on the processed speckle pattern using opening operation to remove the bright spot light points in the processed speckle pattern, so as to realize the noise removal of the processed speckle pattern.

[0026] Optionally, the sorting of the center positions of the m speckle light points to obtain the sorting result includes:

[0027] Determine the center position of the reference light point according to the center positions of the m speckle light points, and the reference light point is the speckle light point with the smallest distance from the origin of the image coordinate system where the original speckle pattern is located among the m speckle light points;

[0028] From each of the speckle light points other than the reference light point, find at least one speckle light point with the smallest ordinate distance from the central position of the reference light point, and then find the speckle light point with the smallest abscissa distance from the central position of the reference light point from the at least one speckle light point, so as to obtain the central position of the next reference light point;

[0029] Repeat the step of traversing each of the speckle light points other than the reference light point until m such speckle light points are traversed and ended, so as to obtain the sorting result.

[0030] On the other hand, the present application provides a speckle pattern partitioning device through an embodiment of the present application. The device includes: an acquisition module, a processing module, a sorting module, and a partitioning module, where:

[0031] The acquisition module is used to acquire an original speckle pattern;

[0032] The processing module is used to perform extraction processing on the speckle light points and the light point centers of the original speckle pattern to obtain the central positions of m speckle light points, where m is a positive integer;

[0033] The sorting module is used to sort the central positions of the m speckle light points to obtain a sorting result;

[0034] The partitioning module is used to partition the original speckle pattern according to the sorting result to obtain n speckle regions, where n is a positive integer.

[0035] Regarding the content not introduced or described in the embodiments of the present application, reference may be made to the relevant introductions in the foregoing method embodiments.

[0036] On the other hand, the present application provides a terminal device through an embodiment of the present application. The terminal device includes: a processor, a memory, a communication interface, and a bus; the processor, the memory, and the communication interface are connected through the bus and complete communication with each other; the memory stores executable program code; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory to execute the speckle pattern partitioning method as described above.

[0037] On the other hand, the present application provides a computer-readable storage medium through an embodiment of the present application. The computer-readable storage medium stores a program, and when the program runs on a terminal device, it executes the speckle pattern partitioning method as described above.

[0038] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: The present application obtains an original speckle pattern; performs extraction processing on speckle light points and light point centers of the original speckle pattern to obtain the central positions of m speckle light points; sorts the central positions of the m speckle light points to obtain a sorting result; partitions the original speckle pattern according to the sorting result to obtain n speckle regions, where both m and n are positive integers. In the above solution, the present application extracts the central positions of m speckle light points in the original speckle pattern, sorts them, and finally performs fast and accurate partitioning processing on the original speckle pattern according to the sorting result, thereby improving the speed and accuracy of speckle pattern partitioning, and at the same time solving the technical problem of difficult speckle partitioning in the prior art. Description of the Drawings

[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0040] Figure 1 It is a schematic flowchart of a speckle pattern partitioning method provided by an embodiment of the present application.

[0041] Figure 2 It is a schematic diagram of an original speckle pattern provided by an embodiment of the present application.

[0042] Figure 3 It is a schematic diagram of an opening operation provided by an embodiment of the present application.

[0043] Figure 4 It is a schematic diagram of a target speckle pattern provided by an embodiment of the present application.

[0044] Figure 5 It is a schematic diagram of an edge contour map provided by an embodiment of the present application.

[0045] Figure 6 It is a schematic diagram of a minimum circumscribed circle provided by an embodiment of the present application.

[0046] Figure 7 It is a schematic diagram of sorting provided by an embodiment of the present application.

[0047] Figure 8 It is a schematic diagram of partitioning of an original speckle pattern provided by an embodiment of the present application.

[0048] Figure 9 It is a schematic structural diagram of a speckle pattern partitioning device provided by an embodiment of the present application.

[0049] Figure 10 It is a structural diagram of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0050] The embodiment of the present application solves the technical problem of difficulty in speckle partitioning in the prior art by providing a speckle pattern partitioning method.

[0051] The technical solution of the embodiment of the present application is to solve the above technical problem, and the overall idea is as follows: obtain an original speckle pattern; extract speckle light spots and light spot centers of the original speckle pattern to obtain the center positions of m speckle light spots, where m is a positive integer; sort the center positions of the m speckle light spots to obtain a sorting result; partition the original speckle pattern according to the sorting result to obtain n speckle areas, where n is a positive integer.

[0052] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0053] First of all, the term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0054] See also Figure 1 , is a flow chart of a speckle pattern partitioning method provided in an embodiment of the present application. Figure 1 The method shown includes the following implementation steps:

[0055] S101, obtaining an original speckle pattern.

[0056] The original speckle pattern described in this application may be acquired through a camera (such as a camera or a camera), or may be acquired from a network device such as a server or a terminal device through a network, and this application does not limit this. For example, see Figure 2 A schematic diagram of a possible original speckle pattern is shown in FIG. Figure 2 The original speckle pattern shown includes a number of speckle light spots, specifically the white spots in the figure.

[0057] S102, extracting the speckle light spots and the centers of the light spots from the original speckle pattern to obtain the center positions of m speckle light spots, where m is a positive integer.

[0058] This application can perform optical image analysis on the original speckle pattern to extract speckle light points and the centers of the light points from the original speckle pattern, thereby obtaining the central positions of m speckle light points. Here, m is a positive integer defined by the system, and this application does not make any limitations. Some possible specific implementation manners related to step S102 are introduced below.

[0059] In a specific implementation manner, this application can perform binarization processing on the original speckle pattern to obtain a corresponding processed speckle pattern. Among them, binarization processing means processing the pixel value of each pixel point in the image into two values, 0 or 255. For example, there is a pixel point with a pixel value of 125 in the original speckle pattern, and the binarization processing threshold is 50. When the pixel value of the pixel point is greater than or equal to 50, the pixel value of this pixel point is processed as 255; conversely, when the pixel value of the pixel point is less than 50, the pixel value of this pixel point is processed as 0. In this example, the pixel value of the pixel point is 125, and after binarization processing, the pixel value of this pixel point is 255.

[0060] Furthermore, this application can perform noise removal on the processed speckle pattern, such as Gaussian filtering to remove noise, etc., to obtain a target speckle pattern. Specifically, for example, this application can use opening operation to perform erosion and dilation processing on the processed speckle pattern to remove the bright spot light points (which can also be simply referred to as bright spots or bright patches) in the processed speckle pattern, thereby realizing noise removal of the processed speckle pattern. Among them, the opening operation is a morphological operation, which clears some small bright spots on the image by eroding first and then dilating. Its operation is specifically as Figure 3 shown in a possible schematic diagram of the opening operation. As Figure 3 shown, this application removes the top black dot A and the middle black dot B included in the X diagram in Figure 3 , and its implementation method is to perform an opening operation on the X diagram and the Y diagram (which can be understood as a convolution kernel) to obtain the final target speckle pattern OPEN(X).

[0061] For example, please refer to Figure 4 shown in a possible schematic diagram of the target speckle pattern. As Figure 4 shown, the target speckle pattern is an image obtained by performing binarization and opening operation processing on the original speckle pattern shown in Figure 2 .

[0062] After obtaining the target speckle pattern, this application can perform extraction processing on the speckle light points and the centers of the light points of the target speckle pattern. Some possible specific implementation manners are introduced below.

[0063] In a specific embodiment, the present application can extract the edge contours of each speckle spot in the target speckle pattern, thereby obtaining the edge contours of m speckle spots. Among them, there are various implementation methods for edge contour extraction, which are not limited in the present application. Specifically, for example, the present application can calculate the difference in pixel values between adjacent pixel points in the target speckle pattern in a preset first direction to obtain a first (directional) contour map; calculate the difference in pixel values between adjacent pixel points in the target speckle pattern in a preset second direction to obtain a second (directional) contour map. Among them, the preset first direction and the preset second direction are different directions set by the system customarily. For example, the preset first direction can be the horizontal direction, and the preset second direction can be the vertical direction, etc., which are not limited in the present application. Further, the present application can perform superposition / coincidence processing on the first contour map and the second contour map to obtain an edge contour map, where the edge contour map includes the edge contours of m speckle spots. Finally, the present application analyzes and obtains the edge contours of m speckle spots from the edge contour map.

[0064] For example, the present application can first calculate the difference between the pixel values of adjacent two pixel points in the target speckle pattern in the direction from left to right to obtain a first contour map. Since the target speckle pattern has been binarized, the pixel value of each pixel point on the image is 0 or 255, and the difference between the pixel values of adjacent two pixel points can be 0 or 255. When the difference is 0, it means that the pixel values of these two adjacent pixel points are the same, and they are not determined as edge pixel points, that is, not the edge contour of the speckle spot. On the contrary, when the difference is 255, it can be determined as an edge pixel point and can be correspondingly judged as the edge contour of the speckle spot. Similarly, the present application can then calculate the difference between the pixel values of adjacent two pixel points in the target speckle pattern in the direction from top to bottom to obtain a second contour map. Finally, the present application can superimpose, that is, perform superposition processing, the contour maps obtained in these two directions to obtain an edge contour map with edge contours. Please refer to Figure 5 FIG. showing a schematic diagram of a possible edge contour map. As Figure 5 shown in the edge contour map, it includes the edge contours of several speckle spots.

[0065] Further, after the present application obtains the edge contours of m speckle spots, it can correspondingly determine the central positions of m speckle spots according to the edge contours of m speckle spots. The implementation method for determining the central positions of the speckle spots is not limited in the present application. For example, it can perform calculation processing such as the minimum circumscribed circle or the maximum circumscribed circle on the edge contour of each speckle spot.

[0066] In a possible implementation, the present application can calculate the minimum circumscribed circle for the edge contours of the m speckle light points respectively, so as to calculate the central positions of the m speckle light points respectively. Among them, the calculation principle of the minimum circumscribed circle can be: find a pair of pixel points with the largest distance among the pixel points in the edge contour of each speckle light point, take the distance between this pair of pixel points as the diameter of the minimum circumscribed circle, and thus establish the minimum circumscribed circle corresponding to the edge contour of the speckle light point. Among them, the central position of the minimum circumscribed circle is the central position of the speckle light point, and this central position can be the center point of the diameter, or the pixel point closest to this center point in the target speckle pattern, etc., usually the center point of the diameter.

[0067] For example, please refer to FIG. 6 which shows a schematic diagram of a minimum circumscribed circle. As Figure 6 shown in the image, it includes the minimum circumscribed circles corresponding to several speckle light points.

[0068] S103. Sort the central positions of the m speckle light points to obtain a sorting result.

[0069] The present application can sort the central positions of the m speckle light points, and the sorting order is not limited in the present application. For example, sort the central positions of the m speckle light points in the order from the upper left to the lower right along the image coordinate system where the original speckle pattern is located, etc.

[0070] In a specific implementation, the present application can determine the central position of the reference light point according to the central positions of the m speckle light points. Specifically, for example, the present application selects the speckle light point with the closest / smallest distance from the origin of the preset image coordinate system (specifically, the image coordinate system where the original speckle pattern is located) from the central positions of the m speckle light points as the reference light point, so as to obtain the central position of the reference light point. Here, the present invention can denote the reference light point as reference light point i, and i is a natural number set by the system itself. For example, i can be 0 or 1, etc.

[0071] Further, in the present application, the speckle spot closest to the reference speckle spot i can be found from each of the other speckle spots except the reference speckle spot i in the order of first vertical and then horizontal, and used as the next reference speckle spot i+1. Specifically, the present application can query each of the other speckle spots except the reference speckle spot, first find at least one speckle spot with the smallest ordinate distance from the center position of the reference speckle spot i, and then find the speckle spot with the smallest abscissa distance from the center position of the reference speckle spot i from the at least one speckle spot, so as to obtain the center position of the next reference speckle spot (i+1), and update i to be equal to i+1. The present application can repeatedly execute the step of finding the next reference speckle spot i+1 closest to the reference speckle spot i from each of the other speckle spots except the reference speckle spot i until m speckle spots are queried and ended, so as to obtain the final sorting result.

[0072] For example, please refer to Figure 7 which is a possible sorting schematic diagram provided by an embodiment of the present application. In a specific implementation, after obtaining the center positions of the m speckle spots, the present application can sort the center positions of the m speckle spots in the order from the upper left to the lower right along the preset image coordinate system. Specifically, the present application can first determine the center position of the reference speckle spot i located at the uppermost left in the coordinate system from the center positions of the m speckle spots, and the reference speckle spot i is the closest / smallest to the origin (0, 0) of the coordinate system. In this example, i can be 1, and the reference speckle spot i can be called the first reference speckle spot, that is, the first speckle spot. Then, find the second speckle spot (i.e., the next reference speckle spot i+1). The way to find the second speckle spot is as follows: the present application can first find at least one speckle spot with the smallest vertical distance dy from the previous reference speckle spot i, and then find a speckle spot with the smallest horizontal distance dx from the previous reference speckle spot i from the at least one speckle spot, which is the next reference speckle spot i+1, as specifically shown in Figure 7 As shown. Based on this principle, the present application can query all the speckle spots, sort all the speckle spots, and obtain the final sorting result.

[0073] S104. Partition the original speckle pattern according to the sorting result to obtain n speckle regions, where n is a positive integer.

[0074] After obtaining the sorting result, the present application can partition the original speckle pattern according to the sorting result, so as to divide the original speckle pattern into n speckle regions. The specific implementation manner of the speckle pattern partitioning is not limited in the present application. For example, the m speckle spots in the sorting result can be divided into corresponding n speckle regions according to the partition rules pre-configured in the system, etc.

[0075] For example, please refer toFigure 8 A schematic diagram showing a possible partitioning of the original speckle pattern is presented. As Figure 8 shown, in this application, the original speckle pattern is divided into 9 (3×3) speckle regions according to the sorting result.

[0076] By implementing this application, this application obtains the original speckle pattern; performs extraction processing on the speckle light points and the centers of the light points in the original speckle pattern to obtain the central positions of m speckle light points; sorts the central positions of the m speckle light points to obtain a sorting result; and partitions the original speckle pattern according to the sorting result to obtain n speckle regions, where both m and n are positive integers. In the above solution, this application quickly and accurately partitions the original speckle pattern by extracting and sorting the central positions of m speckle light points in the original speckle pattern, thereby improving the speed and accuracy of speckle pattern partitioning, and at the same time solving the technical problem of difficult speckle partitioning in the prior art.

[0077] Based on the same inventive concept, another embodiment of this application provides an apparatus and a terminal device corresponding to the speckle pattern partitioning method described in the embodiments of this application.

[0078] Please refer to Figure 9 , which is a schematic structural diagram of a speckle pattern partitioning apparatus provided by an embodiment of this application. As Figure 9 shown, the apparatus 90 includes: an acquisition module 901, a processing module 902, a sorting module 903, and a partitioning module 904, where:

[0079] The acquisition module 901 is configured to acquire the original speckle pattern;

[0080] The processing module 902 is configured to perform extraction processing on the speckle light points and the centers of the light points in the original speckle pattern to obtain the central positions of m speckle light points, where m is a positive integer;

[0081] The sorting module 903 is configured to sort the central positions of the m speckle light points to obtain a sorting result;

[0082] The partitioning module 904 is configured to partition the original speckle pattern according to the sorting result to obtain n speckle regions, where n is a positive integer.

[0083] Optionally, the processing module 902 is specifically configured to:

[0084] Perform binarization processing on the original speckle pattern to obtain a processed speckle pattern;

[0085] Perform noise removal on the processed speckle pattern to obtain a target speckle pattern;

[0086] Perform extraction processing on the target speckle pattern for speckle light points and the centers of the light points to obtain the center positions of m speckle light points.

[0087] Optionally, the processing module 902 is further specifically configured to:

[0088] Extract the edge contours of the speckle light points in the target speckle pattern to obtain the edge contours of m speckle light points;

[0089] Determine the center positions of m speckle light points according to the edge contours of m speckle light points.

[0090] Optionally, the processing module 902 is further specifically configured to:

[0091] Perform difference calculation on the pixel values of adjacent pixel points in the target speckle pattern in a preset first direction to obtain a first contour map;

[0092] Perform difference calculation on the pixel values of adjacent pixel points in the target speckle pattern in a preset second direction to obtain a second contour map;

[0093] Perform superimposing processing on the first contour map and the second contour map to obtain an edge contour map, where the edge contour map includes the edge contours of m speckle light points;

[0094] Obtain the edge contours of m speckle light points according to the edge contour map.

[0095] Optionally, the processing module 902 is further specifically configured to:

[0096] Perform minimum circumscribed circle calculation on the edge contours of m speckle light points to obtain the center positions of m speckle light points.

[0097] Optionally, the processing module 902 is further specifically configured to:

[0098] Perform erosion and dilation processing on the processed speckle pattern using opening operation to remove the bright spot light points in the processed speckle pattern and achieve noise removal of the processed speckle pattern.

[0099] Optionally, the sorting module 903 is specifically configured to:

[0100] Determine the center position of a reference light point according to the center positions of m speckle light points, where the reference light point is the speckle light point with the smallest distance from the origin of the image coordinate system where the original speckle pattern is located among m speckle light points;

[0101] From each of the speckle light points except the reference light point, find at least one speckle light point with the smallest ordinate of the central position from the reference light point, and then find the speckle light point with the smallest abscissa of the central position from the reference light point among the at least one speckle light point, so as to obtain the central position of the next reference light point;

[0102] Repeat the step of each of the speckle light points except the reference light point until m speckle light points are traversed and ended, so as to obtain the sorting result.

[0103] Please also refer to FIG. 10, which is a schematic structural diagram of a terminal device provided by an embodiment of the present application. As Figure 10 The terminal device 100 shown includes: at least one processor 1001, a communication interface 1002, a user interface 1003, and a memory 1004. The processor 1001, the communication interface 1002, the user interface 1003, and the memory 1004 can be connected through a bus or other means. In this embodiment of the present invention, it is taken as an example of being connected through a bus 1005. Among them,

[0104] The processor 1001 may be a general-purpose processor, such as a central processing unit (CPU).

[0105] The communication interface 1002 may be a wired interface (such as an Ethernet interface) or a wireless interface (such as a cellular network interface or a wireless local area network interface) for communicating with other terminals or websites. In this embodiment of the present invention, the communication interface 1002 is specifically used to obtain the original speckle pattern.

[0106] The user interface 1003 may specifically be a touch panel, including a touch screen and a touch screen, for detecting operation instructions on the touch panel. The user interface 1003 may also be a physical button or a mouse. The user interface 1003 may also be a display screen for outputting and displaying images or data.

[0107] The memory 1004 may include a volatile memory, such as a random access memory (RAM); the memory may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid-state drive (SSD); the memory 1004 may further include a combination of the above types of memories. The memory 1004 is used to store a set of program codes, and the processor 1001 is used to call the program codes stored in the memory 1004 to perform the following operations:

[0108] Obtain an original speckle pattern;

[0109] Perform extraction processing on the speckle light spots and the centers of the light spots in the original speckle pattern to obtain the central positions of m speckle light spots, where m is a positive integer;

[0110] Sort the central positions of the m speckle light spots to obtain a sorting result;

[0111] Partition the original speckle pattern according to the sorting result to obtain n speckle regions, where n is a positive integer.

[0112] Optionally, the performing extraction processing on the speckle light spots and the centers of the light spots in the original speckle pattern to obtain the central positions of m speckle light spots includes:

[0113] Perform binarization processing on the original speckle pattern to obtain a processed speckle pattern;

[0114] Perform noise removal on the processed speckle pattern to obtain a target speckle pattern;

[0115] Perform extraction processing on the speckle light spots and the centers of the light spots in the target speckle pattern to obtain the central positions of m speckle light spots.

[0116] Optionally, the performing extraction processing on the speckle light spots and the centers of the light spots in the target speckle pattern to obtain the central positions of m speckle light spots includes:

[0117] Perform edge contour extraction on the speckle light spots in the target speckle pattern to obtain the edge contours of the m speckle light spots;

[0118] Determine the central positions of the m speckle light spots according to the edge contours of the m speckle light spots.

[0119] Optionally, the edge contour extraction of the speckle light points in the target speckle pattern to obtain the edge contours of the m speckle light points includes:

[0120] Calculating the difference value of the pixel values of adjacent pixel points in the target speckle pattern in a preset first direction to obtain a first contour map;

[0121] Calculating the difference value of the pixel values of adjacent pixel points in the target speckle pattern in a preset second direction to obtain a second contour map;

[0122] Performing superposition processing on the first contour map and the second contour map to obtain an edge contour map, where the edge contour map includes the edge contours of the m speckle light points;

[0123] Obtaining the edge contours of the m speckle light points according to the edge contour map.

[0124] Optionally, the determining the center positions of the m speckle light points according to the edge contours of the m speckle light points includes:

[0125] Performing minimum circumscribed circle calculation on the edge contours of the m speckle light points to obtain the center positions of the m speckle light points.

[0126] Optionally, the noise removal of the processed speckle pattern to obtain the target speckle pattern includes:

[0127] Performing erosion and dilation processing on the processed speckle pattern using opening operation to remove the bright spot light points in the processed speckle pattern, so as to realize the noise removal of the processed speckle pattern.

[0128] Optionally, the sorting of the center positions of the m speckle light points to obtain the sorting result includes:

[0129] Determining the center position of a reference light point according to the center positions of the m speckle light points, where the reference light point is the speckle light point with the smallest distance from the origin of the image coordinate system where the original speckle pattern is located among the m speckle light points;

[0130] Searching for at least one speckle light point with the smallest ordinate of the center position from the reference light point among the respective speckle light points except the reference light point, and then searching for the speckle light point with the smallest abscissa of the center position from the at least one speckle light point, so as to obtain the center position of the next reference light point;

[0131] Repeatedly executing the step of the respective speckle light points except the reference light point until all m speckle light points are traversed and ended, so as to obtain the sorting result.

[0132] Since the terminal device introduced in this embodiment is the terminal device used to implement the method in the embodiments of the present application, based on the method introduced in the embodiments of the present application, those skilled in the art can understand the specific implementation manners and various variations of the terminal device in this embodiment. Therefore, the specific implementation of how this terminal device implements the method in the embodiments of the present application will not be described in detail here. As long as the terminal device used by those skilled in the art to implement the method in the embodiments of the present application belongs to the scope protected by the present application.

[0133] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: The present application obtains an original speckle pattern; performs extraction processing on speckle light points and the centers of the light points in the original speckle pattern to obtain the central positions of m speckle light points; sorts the central positions of the m speckle light points to obtain a sorting result; partitions the original speckle pattern according to the sorting result to obtain n speckle regions, where both m and n are positive integers. In the above solution, the present application extracts and sorts the central positions of m speckle light points in the original speckle pattern, and finally performs fast and accurate partitioning processing on the original speckle pattern according to the sorting result, thereby improving the speed and accuracy of speckle pattern partitioning, and at the same time solving the technical problem of difficult speckle partitioning existing in the prior art.

[0134] Those skilled in the art should understand that the embodiments of the present invention can be provided as a method, a system, or a computer program product. Therefore, the present invention can be implemented in the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention can be implemented in the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0135] The present invention is described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram can be implemented by computer program instructions, and the combination of processes and / or blocks in the flowchart and / or block diagram can also be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate a device for implementing the functions specified in one Figure 1 one process or multiple processes and / or blocks Figure 1 one block or multiple blocks.

[0136] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory produce a manufacture including an instruction device that implements the function specified in the process Figure 1 a process or processes and / or block Figure 1 a block or blocks.

[0137] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable apparatus provide steps for implementing the function specified in the process Figure 1 a process or processes and / or block Figure 1 a block or blocks.

[0138] Although the preferred embodiments of the present invention have been described, additional changes and modifications can be made by those skilled in the art once they learn of the basic inventive concept. Therefore, the appended claims are intended to be construed to include the preferred embodiments as well as all changes and modifications that fall within the scope of the present invention.

[0139] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention is also intended to include these modifications and variations.

Claims

1. A speckle pattern partitioning method, characterized in that, The method includes: Obtaining an original speckle pattern; Performing extraction processing on the speckle light spots and the centers of the light spots in the original speckle pattern to obtain the central positions of m speckle light spots, where m is a positive integer; Sorting the central positions of the m speckle light spots to obtain a sorting result; Partitioning the original speckle pattern according to the sorting result to obtain n speckle regions, where n is a positive integer; The performing extraction processing on the speckle light spots and the centers of the light spots in the original speckle pattern to obtain the central positions of m speckle light spots includes: Performing binarization processing on the original speckle pattern to obtain a processed speckle pattern; Performing noise removal on the processed speckle pattern to obtain a target speckle pattern; Performing extraction processing on the speckle light spots and the centers of the light spots in the target speckle pattern to obtain the central positions of m speckle light spots; The performing extraction processing on the speckle light spots and the centers of the light spots in the target speckle pattern to obtain the central positions of m speckle light spots includes: Performing edge contour extraction on the speckle light spots in the target speckle pattern to obtain the edge contours of the m speckle light spots; Determining the central positions of the m speckle light spots according to the edge contours of the m speckle light spots; The performing edge contour extraction on the speckle light spots in the target speckle pattern to obtain the edge contours of the m speckle light spots includes: Calculating the difference value of the pixel values of adjacent pixel points in the target speckle pattern in a preset first direction to obtain a first contour map; Calculating the difference value of the pixel values of adjacent pixel points in the target speckle pattern in a preset second direction to obtain a second contour map; Performing superposition processing on the first contour map and the second contour map to obtain an edge contour map, where the edge contour map includes the edge contours of the m speckle light spots; Obtaining the edge contours of the m speckle light spots according to the edge contour map.

2. The method according to claim 1, wherein The determining the central positions of the m speckle light spots according to the edge contours of the m speckle light spots includes: Performing minimum circumscribed circle calculation on the edge contours of the m speckle light spots to obtain the central positions of the m speckle light spots.

3. The method according to claim 1, wherein The performing noise removal on the processed speckle pattern to obtain a target speckle pattern includes: Performing erosion and dilation processing on the processed speckle pattern by using opening operation to remove the bright spot light points in the processed speckle pattern, so as to realize noise removal of the processed speckle pattern.

4. The method according to claim 1, wherein The sorting the central positions of the m speckle light spots to obtain a sorting result includes: Determining the central position of a reference light spot according to the central positions of the m speckle light spots, where the reference light spot is the speckle light spot with the smallest distance from the origin of the image coordinate system where the original speckle pattern is located among the m speckle light spots; Searching for at least one speckle light spot with the smallest ordinate of the central position from the reference light spot among the other speckle light spots except the reference light spot, and then searching for the speckle light spot with the smallest abscissa of the central position from the at least one speckle light spot, so as to obtain the central position of the next reference light spot; Repeating the step of searching for the other speckle light spots except the reference light spot until all m speckle light spots are traversed and ended, so as to obtain the sorting result.

5. A speckle pattern partitioning device, characterized in that, The device includes: an acquisition module, a processing module, a sorting module, and a partitioning module, where: The acquisition module is configured to acquire an original speckle pattern; The processing module is configured to perform extraction processing on speckle light points and light point centers of the original speckle pattern to obtain the center positions of m speckle light points, where m is a positive integer; Specifically, the processing module is configured to: Perform binarization processing on the original speckle pattern to obtain a processed speckle pattern; Perform noise removal on the processed speckle pattern to obtain a target speckle pattern; Perform extraction processing on speckle light points and light point centers of the target speckle pattern to obtain the center positions of m speckle light points; Extract the edge contours of the speckle light points in the target speckle pattern to obtain the edge contours of the m speckle light points; Determine the center positions of the m speckle light points according to the edge contours of the m speckle light points; Calculate the difference value of the pixel values of adjacent pixel points in the target speckle pattern in a preset first direction to obtain a first contour map; Calculate the difference value of the pixel values of adjacent pixel points in the target speckle pattern in a preset second direction to obtain a second contour map; Perform superimposition processing on the first contour map and the second contour map to obtain an edge contour map, where the edge contour map includes the edge contours of the m speckle light points; Obtain the edge contours of the m speckle light points according to the edge contour map; The sorting module is configured to sort the center positions of the m speckle light points to obtain a sorting result; The partitioning module is configured to partition the original speckle pattern according to the sorting result to obtain n speckle regions, where n is a positive integer.

6. A terminal device, characterized in that, The terminal device includes: a processor, a memory, a communication interface, and a bus; the processor, the memory, and the communication interface are connected through the bus and complete communication with each other; the memory stores executable program codes; the processor runs a program corresponding to the executable program codes by reading the executable program codes stored in the memory to execute the speckle pattern partitioning method according to any one of claims 1-4 above.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a program that, when running on a terminal device, executes the speckle pattern partitioning method according to any one of claims 1-4 above.

Citation Information

Patent Citations

  • Method for monitoring maximum deformation in lifting process of large structure

    CN112329705A

  • Large-span beam deflection monitoring method and monitoring system

    CN113686260A

  • Speckle extraction method and device, electronic equipment and storage medium

    CN113822818A