Bullet hole identification method, computer device and computer program product
Through single-frame image processing and matching algorithms, bullet hole locations are extracted and matched, which solves the problem of poor anti-interference ability of existing technology under outdoor conditions and improves the accuracy and environmental adaptability of bullet hole identification.
Patent Information
- Application Number
- CN202210099857.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-27
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-01-27
AI Technical Summary
The existing bullet hole recognition technology based on image processing has poor anti-interference ability under complex outdoor conditions, and it is easy to mistakenly identify false bullet holes, resulting in low recognition accuracy.
The single-frame image processing method is used to segment the target image through grayscale processing, LBP feature extraction, AdaBoost cascade classifier, adaptive thresholding to process the target image, Gaussian filtering and median filtering to process the bullet hole image, combined with morphology The calculation and edge detection algorithm extracts the bullet hole outline, and uses the KM algorithm to match the bullet hole location data.
It improves the accuracy of bullet hole identification under outdoor conditions, reduces false identification of false bullet holes, enhances anti-interference capabilities, and meets the accuracy and real-time requirements of daily shooting training.
Smart Images

Figure CN114494201B
Abstract
Description
Technical Field
[0001] The present application relates to the field of image recognition technology, and in particular to a bullet hole recognition method, a computer device, and a computer program product. Background Art
[0002] In the prior art, the methods of bullet hole identification can be roughly divided into two types. One is based on a sensor system arranged on the target surface, which can feedback bullet hole location data information based on the sensor information, but it is expensive and has a high average cost. The other is based on image processing technology, which processes the target surface image and extracts information including the location coordinates of the bullet holes to achieve bullet hole identification. It has the advantages of low equipment cost and reusability, and has been increasingly widely used in the field of automatic target reporting.
[0003] In the bullet hole recognition technology based on image processing, most of them currently use the method of jointly analyzing and processing the two frames of images before and after the shooting to identify new bullet holes. For example, based on the frame difference subtraction method, the two frames of images before and after the bullet are shot are frame-subtracted, and the position where the difference is not zero can be considered as the suspected bullet hole area, and then the bullet hole is further determined based on the characteristics of the bullet hole to eliminate noise interference. This kind of method of jointly analyzing and processing the two frames of images before and after the shooting to identify new bullet holes has poor bullet hole detection effect when the outdoor wind shakes the target surface or the bullet hits the target and causes the target surface to shake greatly. It is easy to mistake a large number of pseudo bullet holes for new bullet holes, and the anti-interference ability is poor under complex conditions such as outdoor. Summary of the invention
[0004] The present application provides a bullet hole recognition method with high anti-interference capability, which can improve the recognition accuracy under outdoor conditions.
[0005] A bullet hole identification method, comprising:
[0006] After this shooting, an original image including the target surface is obtained, and a target surface image is segmented from the original image;
[0007] Segmenting a bullet hole image from the target surface image;
[0008] Extracting the bullet hole contour from the bullet hole image to obtain a bullet hole contour map;
[0009] The bullet hole contour map is compared with the relevant information before this shooting to obtain new bullet hole information.
[0010] Optionally, segmenting a target surface image from the original image specifically includes:
[0011] Gray-scale the original image to obtain a gray-scale image;
[0012] Extracting LBP features of the grayscale image;
[0013] According to the LBP features, a target surface image is segmented from the grayscale image through an AdaBoost cascade classifier.
[0014] Optionally, segmenting the bullet hole image from the target surface image specifically includes:
[0015] Processing the target surface image by an adaptive algorithm to obtain a preliminary threshold;
[0016] Clearing the grayscale of pixels in the target surface image whose grayscale values are higher than the preliminary threshold to obtain a main background image;
[0017] Counting the grayscale mean of the subject background image through a histogram;
[0018] Subtract the first preset grayscale from the grayscale mean to obtain a final threshold;
[0019] The grayscale of pixels in the main background image whose grayscale value is higher than the final threshold is replaced with a second preset grayscale to obtain the bullet hole image.
[0020] Optionally, extracting a bullet hole contour from the bullet hole image specifically includes:
[0021] Performing Gaussian filtering on the bullet hole image to obtain a first image, and performing median filtering on the bullet hole image to obtain a second image;
[0022] Subtract the first image from the second image and perform binarization to obtain a third image;
[0023] Further eliminating noise from the third image by morphological operation to obtain a fourth image;
[0024] The fourth image is processed by an edge detection algorithm to obtain the bullet hole contour map.
[0025] Optionally, comparing the bullet hole contour map with relevant information before the current shooting specifically includes:
[0026] A current bullet hole data set is obtained according to the bullet hole contour map, wherein the current bullet hole data set includes a plurality of first bullet hole position data.
[0027] Obtaining a historical bullet hole data set, wherein the historical bullet hole data set includes zero or more second bullet hole position data;
[0028] The current bullet hole data set is paired with the historical bullet hole data set using a matching algorithm to find out the first bullet hole position data that is not matched in the current bullet hole data set, that is, new bullet hole information.
[0029] Optionally, obtaining a current bullet hole dataset according to the bullet hole contour map specifically includes:
[0030] Calculate the circumscribed rectangle of each bullet hole in the bullet hole contour map, and count the maximum length, maximum width, minimum length, and minimum width of each circumscribed rectangle;
[0031] The bullet holes that meet the following conditions are determined as single holes: the aspect ratio of the circumscribed rectangle is less than the first preset aspect ratio, the length is greater than the minimum length, the width is less than or equal to the maximum length, and the area is greater than the preset area; the remaining bullet holes that meet the following conditions are determined as duplicate holes: the aspect ratio is greater than the first preset aspect ratio and less than the second preset aspect ratio;
[0032] For the single hole, a bullet hole center point is recorded according to a preset algorithm; for the repeated hole, a central axis parallel to the long side of the circumscribed rectangle of the repeated hole is obtained, and two trisection points of the central axis are obtained, and the two trisection points are respectively used as a bullet hole center point;
[0033] The position data of the center points of the bullet holes are counted to obtain the current bullet hole data set.
[0034] Optionally, counting the position data of the center points of the bullet holes to obtain the current bullet hole data set specifically includes:
[0035] The image coordinate system is established with the upper left corner of the target image as the coordinate origin, the right as the positive direction of the horizontal axis, the downward as the positive direction of the vertical axis, and one pixel as a standard distance unit;
[0036] The coordinates of the center points of each bullet hole in the image coordinate system are calculated to obtain the current bullet hole data set.
[0037] Optionally, the current bullet hole dataset is paired with the historical bullet hole dataset using a matching algorithm, specifically including:
[0038] The first bullet hole position data is recorded as (x1, y1), and the second bullet hole position data is recorded as (x2, y2). The matching weight -L between each first bullet hole position data and each second bullet hole position data is calculated, where L = |x1-x2|+|y1-y2|;
[0039] The first bullet hole position data in the current bullet hole data set is paired with the second bullet hole position data in the historical bullet hole data set through the KM algorithm, and a pairing method that maximizes the sum of the matching weights is selected as a pairing result.
[0040] The present application also provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method when executing the computer program.
[0041] The present application also provides a computer program product, comprising computer instructions, which implement the steps of the method when executed by a processor.
[0042] The bullet hole recognition method provided in the present application has high anti-interference capability and can improve the recognition accuracy under outdoor conditions. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 This is a flow chart of an embodiment of a bullet hole identification method of the present application;
[0044] Figure 2 for Figure 1 Specific flow chart of step S100;
[0045] Figure 3 for Figure 2 Specific flow chart of step S130;
[0046] Figure 4 for Figure 1 Specific flow chart of step S200;
[0047] Figure 5 for Figure 1 Specific flow chart of step S300;
[0048] Figure 6 for Figure 1 Schematic diagram of step S400;
[0049] Figure 7 for Figure 1 Specific flow chart of step S410;
[0050] Figure 8 This is a schematic diagram of the structure of an embodiment of a computer device of the present application;
[0051] Fig. 9 is a grayscale image obtained after processing in step S110 in one embodiment;
[0052] Fig.10 is a target surface image obtained after processing in step S130 in one embodiment;
[0053] Fig.11 is a partition image obtained after processing in step S220 in one embodiment;
[0054] Fig.12 is a main background image obtained through processing in step S240 in one embodiment;
[0055] Fig.13 is a first image obtained by Gaussian filtering in step S310 in one embodiment;
[0056] Fig.14 is a second image obtained by median filtering in step S310 in one embodiment;
[0057] Fig.15 In one embodiment Fig.13 and Fig.14 Grayscale image of bullet holes obtained by subtraction;
[0058] Fig.16 In one embodiment, Fig.15 The third image obtained by binarization;
[0059] Fig.17 It is a new bullet hole map identified according to the pairing structure in step S432. DETAILED DESCRIPTION
[0060] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0061] The bullet hole recognition method of an embodiment of the present application is as follows: Figure 1 As shown, the bullet hole identification method includes:
[0062] Target surface positioning step S100, after this shooting, an original image including the target surface is obtained, and a target surface image is segmented from the original image;
[0063] Thresholding step S200, segmenting the bullet hole image from the target surface image;
[0064] Contour extraction step S300, extracting the bullet hole contour from the bullet hole image to obtain a bullet hole contour map, and the position of each bullet hole contour relative to the target surface image can be obtained according to the bullet hole contour map;
[0065] In the bullet hole matching step S400, the bullet hole contour image is compared with the relevant information before the current shooting to obtain new bullet hole information.
[0066] It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0067] like Figure 2 As shown, the target surface positioning step S100 may adopt the existing technology, or may include the following specific steps:
[0068] S110, grayscale the original image to obtain Fig. 9 The grayscale image ImgGray shown;
[0069] S120, extracting LBP features of the grayscale image ImgGray;
[0070] S130, based on the LBP features, segment the grayscale image into Fig.10 The target surface image ImgRoi is shown. The target surface image ImgRoi is the largest matching area in the grayscale image ImgGray.
[0071] like Figure 3 As shown, in step S130, the training method of the AdaBoost cascade classifier includes:
[0072] S131, graying multiple images containing target surfaces and multiple images not containing target surfaces, with images containing target positions as positive samples k1 and images not containing target surfaces as negative samples k2;
[0073] S132, extracting the LBP features of the positive sample k1 to obtain the positive sample space Z1; extracting the LBP features of the negative sample k2 to obtain the negative sample space Z2;
[0074] S133, using the positive sample space Z1 and the negative sample space Z2 to train the AdaBoost cascade classifier. The number of iterations is set to n, and after n iterations, n weak classifiers are obtained, and the n weak classifiers are combined together to obtain the final strong classifier Classifier.
[0075] like Figure 4 As shown, the thresholding step S200 specifically includes:
[0076] S210, performing a mean filtering operation on the target surface image ImgRoi to obtain ImgBlured;
[0077] S220, split imgBlured horizontally into Fig.11There are six local areas of the same size shown, and each local area performs subsequent processing steps S230, S240, S250, and S260 respectively;
[0078] S230, using the Otsu algorithm to automatically calculate a preliminary threshold for segmenting the background and foreground of the local area.
[0079] S240, clearing the grayscale of pixels in the target surface image whose grayscale value is higher than the initial threshold to obtain Fig.12 The subject background image PartOTSU is shown. The pixels above the preliminary threshold are mainly white, and the grayscale of pixels below the preliminary threshold remains unchanged.
[0080] S250, the grayscale mean of the main background image PartOTSU is counted by histogram. Specifically, PartOTSU is divided into 256 grayscale values of 0, 1, 2, ..., 255 by using the histogram statistics method for statistics, the minimum grayscale value and the maximum grayscale value are set to Gray_min and Gray_max respectively, the grayscale statistics interval is set to Gray_gap, and the grayscale mean Gray_val of the green main background part of the target surface is found from the grayscale value Gray_min to gray_max, so that the cumulative sum of the histogram statistics results with the grayscale mean in the range of [Gray_val-Gray_gap, Gray_val+Gray_gap] is the largest.
[0081] S260, subtract the first preset grayscale from the grayscale mean to obtain the final threshold. Specifically, set the adjustment parameter margin, take the difference between Gray_val and margin as the adaptive threshold threshold, replace the grayscale of pixels with a grayscale value of 0 and a grayscale value greater than threshold in PartOTSU with the second preset grayscale, and keep the grayscale values of the remaining areas unchanged, to obtain the partitioned threshold image PartThres. The second preset grayscale is the adaptive threshold threshold.
[0082] S270, merging the six partition threshold images PartThres into a bullet hole image ImgThres.
[0083] The bullet hole image ImgThres may contain noises such as ring contour pixels and digital contour pixels. To improve recognition accuracy, in one embodiment, Figure 5 As shown, the contour extraction step S300 includes:
[0084] S310, performing Gaussian filtering on the bullet hole image ImgThres to obtain Fig.13 The first image shown in FIG. 1 is subjected to median filtering on the bullet hole image ImgThres to obtain the following Fig.14The second image is shown. Gaussian filtering only removes Gaussian noise, while median filtering can remove the spot-like areas where bullet holes are located but retain large-area interference areas such as rings and numbers.
[0085] S320, subtract the first image from the second image to obtain Fig.15 The bullet hole grayscale image shown in the figure, and then the bullet hole grayscale Figure 2 Value, get Fig.16 The third image ImgDiff shown;
[0086] S330, further eliminating noise from the third image by morphological operation to obtain a fourth image. The morphological operation may include an erosion operation first and a dilation operation later.
[0087] S340, processing the fourth image by using an edge detection algorithm to obtain a bullet hole contour image.
[0088] like Figure 6 As shown, the bullet hole matching step S400 specifically includes:
[0089] S410, obtaining a current bullet hole data set according to the bullet hole contour map, wherein the current bullet hole data set includes a plurality of first bullet hole position data data1.
[0090] S420, obtaining a historical bullet hole data set, wherein the historical bullet hole data set includes zero or more second bullet hole position data data2.
[0091] S430, using a matching algorithm to pair the current bullet hole data set with the historical bullet hole data set, and finding the first bullet hole position data (e.g. Figure 6 data1_2) in the , that is, the new bullet hole information.
[0092] For example, when this shooting is the first shooting, the number of second bullet hole position data in the historical bullet hole data set is zero, and the current bullet hole data set contains only one first bullet hole position data, and no successful pairing is performed. When this shooting is the Nth shooting, N-1 pairs are successfully matched, and new bullet hole information is obtained based on the remaining first bullet hole position data.
[0093] like Figure 7 As shown, S410 specifically includes:
[0094] S411, calculating the circumscribed rectangle of each bullet hole in the bullet hole contour map, and counting the maximum length Hole_Length_max, the maximum width Hole_Width_max, the minimum length Hole_Length_min, and the minimum width Hole_Width_min in each circumscribed rectangle;
[0095] S412, the bullet holes that meet the following conditions are determined as single holes: the aspect ratio of the circumscribed rectangle is less than the first preset aspect ratio Hole_Ratio_1, the length is greater than the minimum length Hole_Length_min, the width is less than or equal to the maximum length Hole_Length_max, and the area is greater than the preset area; the remaining bullet holes that meet the following conditions are determined as duplicate holes: the aspect ratio is greater than the first preset aspect ratio Hole_Ratio_1, and less than the second preset aspect ratio Hole_Ratio_2. Specifically, the first preset aspect ratio Hole_Ratio_1 is 1.4, the second preset aspect ratio Hole_Ratio_2 is 3, and the preset area is the minimum bullet hole contour area Area_min.
[0096] S413, for a single hole, a center point of a bullet hole is recorded according to a preset algorithm; for a duplicate hole, a central axis parallel to the long side of the circumscribed rectangle of the duplicate hole is obtained, and two points dividing the central axis into three equal parts are obtained, and the two points dividing the three equal parts are respectively used as a center point of a bullet hole;
[0097] S414, collecting statistics on the position data of the center points of the bullet holes to obtain a current bullet hole data set.
[0098] Specifically, S430 includes:
[0099] S431, the first bullet hole position data is recorded as (x1, y1), the second bullet hole position data is recorded as (x2, y2), and the matching weight -L between each first bullet hole position data and each second bullet hole position data is calculated, where L = |x1-x2|+|y1-y2|;
[0100] S432, using the KM algorithm, pairing the first bullet hole position data in the current bullet hole data set with the second bullet hole position data in the historical bullet hole data set, and selecting a pairing method that maximizes the sum of the matching weights as Figure 6 The pairing results shown are as follows: Fig.17 As shown, the new bullet hole positions selected according to the pairing results are marked with white circles.
[0101] The bullet hole recognition method of the present application has one of the following advantages: based on single-frame image processing and bullet hole matching, the target position is first segmented, and after filtering, the target image is segmented into small areas and adaptive thresholding is performed respectively using methods such as Otsu algorithm and histogram statistics, which effectively solves the problem of uneven brightness of the image and difficulty in extracting the bullet hole area caused by target surface shaking. Then, the target image after regional thresholding is subjected to Gaussian filtering and median filtering respectively, and the two filtered images are subtracted, and the contour directly extracted after thresholding is combined with the AND operation to better retain the contour of the bullet hole area and remove interference noise. By setting the bullet hole standard, all bullet holes before and after the shooting are detected, and then bullet hole matching is performed based on the KM algorithm to identify new bullet holes, thereby avoiding the problem of easily misidentifying a large number of pseudo bullet holes as new bullet holes when the target surface shakes, having a higher recognition accuracy and better environmental adaptability, and can basically meet the requirements of reporting targets in daily shooting training in terms of accuracy and real-time performance.
[0102] like Figure 8 As shown, the present application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of any of the above bullet hole identification methods are implemented.
[0103] The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the above bullet hole recognition method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse, etc.
[0104] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0105] The present application also provides a computer program product, including computer instructions, which implement the steps of any of the above bullet hole identification methods when executed by a processor.
[0106] In this embodiment, the computer program product includes a program code portion for executing the steps of the active magnetic compensation method in each embodiment of the present application when the computer program product is executed by one or more computing devices. The computer program product may be stored on a computer-readable recording medium. The computer program product may also be provided for download via a data network (e.g., via a RAN, via the Internet and / or via an RBS). Alternatively or additionally, the method may be encoded in a field programmable gate array (FPGA) and / or an application specific integrated circuit (ASIC), or functionality may be provided for download by means of a hardware description language.
[0107] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification. When the technical features in different embodiments are embodied in the same figure, it can be regarded that the figure also discloses the combination examples of the various embodiments involved.
[0108] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A bullet hole identification method, characterized in that: include: After this shooting, an original image including the target surface is obtained, and a target surface image is segmented from the original image; Segmenting a bullet hole image from the target surface image; Extracting the bullet hole contour from the bullet hole image to obtain a bullet hole contour map; According to the bullet hole contour map, a current bullet hole data set is obtained, wherein the current bullet hole data set includes a plurality of first bullet hole position data, a historical bullet hole data set is obtained, wherein the historical bullet hole data set includes zero or a plurality of second bullet hole position data, and the current bullet hole data set is paired with the historical bullet hole data set by using a matching algorithm, and unmatched first bullet hole position data in the current bullet hole data set is found to obtain new bullet hole information; The current bullet hole data set is obtained according to the bullet hole contour map, specifically comprising: calculating the circumscribed rectangle of each bullet hole in the bullet hole contour map, counting the maximum length, maximum width, minimum length and minimum width of each circumscribed rectangle, and determining the bullet holes that meet the following conditions as single holes: the aspect ratio of the circumscribed rectangle is less than a first preset aspect ratio, the length is greater than the minimum length, the width is less than or equal to the maximum length, and the area is greater than the preset area; determining the remaining bullet holes that meet the following conditions as repeated holes: the aspect ratio is greater than the first preset aspect ratio and less than the second preset aspect ratio, for the single hole, recording a bullet hole center point according to a preset algorithm, for the repeated holes, obtaining the central axis of the circumscribed rectangle of the repeated hole parallel to the long side, obtaining two trisection points of the central axis, and using the two trisection points as a bullet hole center point respectively, counting the position data of each bullet hole center point, and obtaining the current bullet hole data set.
2. The bullet hole identification method according to claim 1, characterized in that: Segmenting a target surface image from the original image specifically includes: Gray-scale the original image to obtain a gray-scale image; Extracting LBP features of the grayscale image; According to the LBP features, a target surface image is segmented from the grayscale image through an AdaBoost cascade classifier.
3. The bullet hole identification method according to claim 1, characterized in that: Segmenting a bullet hole image from the target surface image specifically includes: Processing the target surface image by an adaptive algorithm to obtain a preliminary threshold; Clearing the grayscale of pixels in the target surface image whose grayscale values are higher than the preliminary threshold to obtain a main background image; Counting the grayscale mean of the subject background image through a histogram; Subtract the first preset grayscale from the grayscale mean to obtain a final threshold; The grayscale of pixels in the main background image whose grayscale value is higher than the final threshold is replaced with a second preset grayscale to obtain the bullet hole image.
4. The bullet hole identification method according to claim 3, characterized in that: The grayscale mean value of the subject background image is counted by a histogram, specifically including: The grayscale statistical interval is set, and the grayscale mean of the subject background image is counted by histogram so that the cumulative sum of the histogram statistical results of the grayscale mean in the range of [grayscale mean - grayscale statistical interval, grayscale mean + grayscale statistical interval] is the largest.
5. The bullet hole identification method according to claim 1, characterized in that: Extracting the bullet hole contour from the bullet hole image specifically includes: Performing Gaussian filtering on the bullet hole image to obtain a first image, and performing median filtering on the bullet hole image to obtain a second image; Subtract the first image from the second image and perform binarization to obtain a third image; Further eliminating noise from the third image by morphological operation to obtain a fourth image; The fourth image is processed by an edge detection algorithm to obtain the bullet hole contour map.
6. The bullet hole identification method according to claim 1, characterized in that: The position data of the center points of each bullet hole are counted to obtain the current bullet hole data set, which specifically includes: The image coordinate system is established with the upper left corner of the target image as the coordinate origin, the right as the positive direction of the horizontal axis, the downward as the positive direction of the vertical axis, and one pixel as a standard distance unit; The coordinates of the center points of each bullet hole in the image coordinate system are calculated to obtain the current bullet hole data set.
7. The bullet hole identification method according to claim 1, characterized in that: The current bullet hole dataset is paired with the historical bullet hole dataset using a matching algorithm, specifically including: The first bullet hole position data is recorded as (x1, y1), and the second bullet hole position data is recorded as (x2, y2). The matching weight -L between each first bullet hole position data and each second bullet hole position data is calculated, where L=|x1-x2|+|y1-y2|; The first bullet hole position data in the current bullet hole data set is paired with the second bullet hole position data in the historical bullet hole data set through the KM algorithm, and a pairing method that maximizes the sum of the matching weights is selected as a pairing result.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
9. A computer program product comprising computer instructions, characterized in that When the computer instructions are executed by a processor, the steps of the method described in any one of claims 1 to 7 are implemented.
