Dummy head offset testing method and device, equipment and storage medium
The binocular camera identifies feature points and tracks to generate a head offset curve, which solves the problem of low accuracy in calculating the dummy head offset in the remote slide test and achieves more accurate vehicle test results.
Patent Information
- Application Number
- CN202410785720.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-08-30
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing method for calculating the head offset of the dummy in the remote slide test has low accuracy and cannot obtain the head offset curve, making simulation benchmarking difficult.
Binocular cameras are used to identify feature points, the target feature point coordinates are determined based on the initial frame test image, and the head offset curve is generated through feature point tracking to determine the test results.
The accuracy of the dummy head offset calculation in the remote slide test is improved, and the error of the calculation results is reduced. The potential damage to the head caused by collision can be more accurately assessed, and vehicle design and passenger protection measures can be improved.
Smart Images

Figure CN118570257A
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle testing technology, and in particular to a dummy head displacement testing method, device, equipment and storage medium. Background Art
[0002] In the CNCAP2024 updated regulations, a remote airbag evaluation procedure has been added, focusing on the head offset of the non-collision side dummy in the front row. The maximum head offset during the test will determine the maximum score of the dummy, which in turn affects the safety rating of the entire vehicle. At present, laboratory occupants generally use visual calculations for the head offset in remote tests. According to the size of the reference grid and the limit line corresponding to the camera, they observe the landing area of the head and roughly judge the offset of the head. The above method is relatively rough and cannot obtain the offset curve of the head, making simulation benchmarking difficult. Therefore, how to solve the low accuracy of the existing method for calculating the dummy's head offset in the remote slide test has become a technical problem that needs to be solved urgently. Summary of the invention
[0003] The main purpose of the present application is to provide a method, device, equipment and storage medium for testing the dummy head offset, aiming to solve the technical problem of low accuracy of the dummy head offset calculation method in the existing far-end slide test.
[0004] To achieve the above object, the present application proposes a method for testing the displacement of a dummy head, the method comprising:
[0005] Determine the coordinates of the target feature points according to the initial frame test image;
[0006] Determine a head offset curve according to the target feature point coordinates and the test head image corresponding to each image frame;
[0007] A target test result is determined based on the head offset curve.
[0008] In one embodiment, determining the coordinates of the target feature points according to the initial frame test image includes:
[0009] Determine a first grayscale image and a second grayscale image according to an initial frame test image;
[0010] Determine first feature pixel coordinates according to the first grayscale image and a preset feature detection strategy;
[0011] The target feature point coordinates are determined according to the first feature pixel coordinates and the second grayscale image.
[0012] In one embodiment, determining the first feature pixel coordinates according to the first grayscale image and a preset feature detection strategy includes:
[0013] Determine a plurality of image grayscale values and grayscale value directions according to the first grayscale image and a preset feature detection strategy;
[0014] Determine the corresponding gray value variance according to the gray values of the multiple images;
[0015] The first characteristic pixel coordinates are determined according to the gray value variance and the gray value direction.
[0016] In one embodiment, determining the target feature point coordinates according to the first feature pixel coordinates and the second grayscale image includes:
[0017] Determine a second feature pixel coordinate according to the second grayscale image and the preset feature detection strategy;
[0018] Determine a feature matching result according to the first feature pixel coordinates and the second feature pixel coordinates;
[0019] The target feature point coordinates are determined according to the feature matching results.
[0020] In one embodiment, determining the target feature point coordinates according to the feature matching result includes:
[0021] When the feature matching result is that the feature matching is successful, obtaining the pixel coordinates of the feature points;
[0022] The target feature point coordinates are determined according to the feature point pixel coordinates and the coordinate mapping relationship.
[0023] In one embodiment, before determining the target feature point coordinates according to the feature point pixel coordinates and the coordinate mapping relationship, the method further includes:
[0024] Obtain the target camera image corresponding to the preset calibration object;
[0025] Determine camera internal and external parameters according to the target camera image;
[0026] The coordinate mapping relationship is determined according to the camera internal and external parameters and a preset coordinate calibration strategy.
[0027] In one embodiment, determining the head offset curve according to the target feature point coordinates and the test head image corresponding to each image frame includes:
[0028] Determine the image pixel coordinates corresponding to each image frame according to the target feature point coordinates and the test head image corresponding to each image frame;
[0029] Determine a plurality of conversion feature coordinates according to the image pixel coordinates corresponding to each image frame and the coordinate mapping relationship;
[0030] A head offset curve is determined based on a plurality of transformed feature coordinates.
[0031] In addition, to achieve the above-mentioned purpose, the present application also proposes a dummy head displacement test device, the dummy head displacement test device comprising:
[0032] A processing module, used for determining the coordinates of target feature points according to the initial frame test image;
[0033] The processing module is further used to determine a head offset curve according to the target feature point coordinates and the test head image corresponding to each image frame;
[0034] A testing module is used to determine a target test result according to the head offset curve.
[0035] In addition, to achieve the above-mentioned purpose, the present application also proposes a dummy head offset testing device, which includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, and the computer program is configured to implement the steps of the dummy head offset testing method as described above.
[0036] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the dummy head offset test method as described above are implemented.
[0037] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps of the dummy head offset testing method as described above are implemented.
[0038] The present application determines the target feature point coordinates according to the initial frame test image; determines the head offset curve according to the target feature point coordinates and the test head image corresponding to each image frame; and determines the target test result according to the head offset curve. The feature points are identified by using a binocular camera, the coordinates corresponding to the feature points are determined, the feature points are tracked during the test, the coordinates under each frame are identified, and then the head offset curve is generated. Finally, the vehicle test result is obtained according to the head offset curve, which improves the accuracy of calculating the dummy head offset in the far-end slide test and reduces the error of the dummy head offset calculation result. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0040] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0041] Figure 1 A flow chart of the first embodiment of the dummy head displacement test method provided in the present application;
[0042] Figure 2 A schematic diagram of circular characteristic marks on a dummy's face provided in Example 1 of the dummy head offset testing method of the present application;
[0043] Figure 3 A flow chart of the second embodiment of the dummy head deviation test method provided in the present application;
[0044] Figure 4 A schematic diagram of a simplified flow chart of a dummy head offset testing method provided in Embodiment 2 of the present application;
[0045] Figure 5 This is a schematic diagram of the module structure of a dummy head displacement test device according to an embodiment of the present application;
[0046] Figure 6 Schematic diagram of the device structure of the hardware operating environment involved in the dummy head offset testing method in the embodiment of the present application.
[0047] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0048] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0049] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0050] The main solution of the embodiment of the present application is: determine the target feature point coordinates based on the initial frame test image; determine the head offset curve based on the target feature point coordinates and the test head image corresponding to each image frame; determine the target test result based on the head offset curve.
[0051] In the CNCAP2024 updated regulations, a remote airbag evaluation procedure has been added, focusing on the head offset of the non-collision side dummy in the front row. The maximum head offset during the test will determine the maximum score of the dummy, which in turn affects the safety rating of the entire vehicle. At present, laboratory occupants generally use visual calculations for the head offset in remote tests. According to the size of the reference grid and the limit line corresponding to the camera, they observe the landing area of the head and roughly judge the offset of the head. The above method is relatively rough and cannot obtain the offset curve of the head, making simulation benchmarking difficult. Therefore, how to solve the low accuracy of the existing method for calculating the dummy's head offset in the remote slide test has become a technical problem that needs to be solved urgently.
[0052] The present application determines the target feature point coordinates according to the initial frame test image; determines the head offset curve according to the target feature point coordinates and the test head image corresponding to each image frame; and determines the target test result according to the head offset curve. The feature points are identified by using a binocular camera, the coordinates corresponding to the feature points are determined, the feature points are tracked during the test, the coordinates under each frame are identified, and then the head offset curve is generated. Finally, the vehicle test result is obtained according to the head offset curve, which improves the accuracy of calculating the dummy head offset in the far-end slide test and reduces the error of the dummy head offset calculation result.
[0053] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or a dummy head displacement test device that can realize the above functions, etc. The following takes the dummy head displacement test device as an example of the execution subject to illustrate this embodiment and the following embodiments.
[0054] Based on this, the present application embodiment provides a method for testing the displacement of a dummy head. Figure 1 , Figure 1 This is a flow chart of the first embodiment of the dummy head deviation testing method of the present application.
[0055] In this embodiment, the dummy head displacement test method includes steps S10 to S30:
[0056] Step S10, determining the coordinates of the target feature points according to the initial frame test image;
[0057] It should be noted that in the far-end slide test, to determine the maximum offset of the dummy head, currently the video captured by the camera is used to visually observe the overlapping area of the dummy head and the reference grid behind it to roughly estimate its offset, but the result is not accurate enough and the error is large. This embodiment uses a binocular camera to identify the initial marking points, tracks the feature points during the test, identifies the coordinates in each frame, and finally generates a head offset curve.
[0058] It can be understood that the initial frame test image refers to the first frame image (ie, time 0 of the test), and the target feature point coordinates refer to the coordinates of the circular feature marks on the dummy's face.
[0059] In a specific implementation, the binocular camera includes a left camera and a right camera. When conducting a far-end sliding table test, the first frame image is captured by the left camera and the right camera respectively. Then, based on the first frame image captured by the left camera and the first frame image captured by the right camera, feature point detection is performed using the Harris corner detection algorithm to obtain the coordinates of the circular feature marks on the dummy's face.
[0060] It should be noted that the circular characteristic marks on the mannequin's face are Figure 2 As shown in the figure, since the test dummy face does not have an obvious nose tip shape, circular markers are pasted on the test dummy face to establish features. Harris corner point detection method is used for the detection of circular feature points. The implementation principle is that when the small window is translated in all directions in the image, its internal grayscale value changes, and it can be judged that there are circular feature points inside the small window. Furthermore, the point with equal displacement in all directions when the grayscale value changes (i.e., the center of the circular feature point) is taken as the extracted corner point, and finally the detection and extraction of circular feature points is realized.
[0061] Step S20, determining a head offset curve according to the target feature point coordinates and the test head image corresponding to each image frame;
[0062] It can be understood that the test head image refers to the dummy head image corresponding to different frames during the far-end slide test, and the head offset curve refers to the displacement of the dummy head at different time points, that is, the movement trajectory of the head at the moment of collision and afterwards.
[0063] In the specific implementation, the binocular camera is used to collect the dummy head images corresponding to different frames during the remote sliding table test, and then the feature tracking is performed according to the coordinates of the obtained circular feature marks on the dummy's face, so as to obtain the curve generated by the displacement of the dummy head at different time points.
[0064] In a feasible implementation, step S20 may include steps A21 to A23:
[0065] Step A21, determining the image pixel coordinates corresponding to each image frame according to the target feature point coordinates and the test head image corresponding to each image frame;
[0066] It can be understood that the image pixel coordinates refer to the pixel coordinates corresponding to the feature points in each image frame.
[0067] In a specific implementation, according to the coordinates of the acquired circular feature marks on the dummy's face, the feature points in the test dummy's head image corresponding to each image frame are tracked and identified, that is, the pixel coordinates of the feature points in the test dummy's head image corresponding to each image frame are identified.
[0068] Step A22, determining a plurality of conversion feature coordinates according to the image pixel coordinates corresponding to each image frame and the coordinate mapping relationship;
[0069] It can be understood that the coordinate mapping relationship refers to a preset coordinate conversion relationship, that is, a mapping relationship from pixel coordinates to world coordinates, and the converted feature coordinates refer to the feature point coordinates after the coordinate conversion.
[0070] In a specific implementation, according to a preset coordinate transformation relationship, the pixel coordinates of the feature points in the test dummy head image corresponding to each image frame are transformed into corresponding world coordinates, for example, the pixel coordinates of the feature points in the image are transformed into vehicle body coordinates, thereby obtaining multiple feature point coordinates after coordinate transformation.
[0071] Step A23, determining a head offset curve according to a plurality of transformed feature coordinates.
[0072] It can be understood that the offset of the dummy head is determined according to the feature point coordinates of different frames, that is, the feature point coordinates at different times, and the dummy head offset corresponding to different times is obtained, and then the dummy head offset curve is drawn according to the dummy head offset corresponding to different times.
[0073] Step S30, determining a target test result according to the head offset curve.
[0074] It can be understood that the target test result refers to the test result of the dummy head offset, and the target test result includes the maximum offset of the dummy head, the offset path of the dummy head and the minimum offset of the dummy head.
[0075] In specific implementation, by analyzing the dummy head deflection curve, the maximum deflection of the dummy head, the deflection path of the dummy head, and the minimum deflection of the dummy head can be determined. That is, according to the shape and value of the dummy head deflection curve, the potential damage to the head caused by the collision can be understood, and then the vehicle design can be improved and the passenger protection measures can be enhanced. For example, by analyzing the head deflection curve, the effectiveness of the headrest design, the deployment timing and effect of the airbag, and the energy absorption capacity of the body structure in a collision can be evaluated.
[0076] It should be noted that for the specific operation of circular feature point matching, the left and right cameras are first calibrated in stereo. Camera calibration is to obtain the internal and external parameters of the camera by shooting a known calibration object, and establish a mapping relationship from pixel coordinates to world coordinates. In this embodiment, the calibration object uses the circular features of the dummy's face. When the dummy is placed in the test, a three-coordinate measuring instrument is used to measure this feature point to obtain its spatial coordinates in the body coordinate system, and then convert it to obtain its mapping relationship. After the calibration is completed, the first frame image captured by the left camera (i.e., time 0 of the test) is taken to complete the image preprocessing, and the pixel coordinates of the center of the circular feature point are obtained using the Harris corner detection algorithm. Feature matching is performed on the circular feature points on the first frame image captured by the right camera, so as to obtain the position of the center feature point on the image captured by the right camera corresponding to the left camera, and complete the feature matching of the left and right cameras. Finally, feature tracking is performed on the matched image to obtain the pixel coordinates of the circular feature points in each frame of the image. Then, the coordinate conversion formula can be used to convert the pixel coordinates to the vehicle body coordinates based on the feature point coordinates measured before the test, and the vehicle body coordinates of the circular feature points can be obtained. Then, the displacement curve of the feature points can be obtained, and finally, the far-end slide test results can be obtained based on the displacement curve of the feature points.
[0077] This embodiment determines the target feature point coordinates according to the initial frame test image; determines the head offset curve according to the target feature point coordinates and the test head image corresponding to each image frame; and determines the target test result according to the head offset curve. By using a binocular camera to identify the feature points, determine the coordinates corresponding to the feature points, track the feature points during the test, identify the coordinates in each frame, and then generate a head offset curve. Finally, the vehicle test result is obtained according to the head offset curve, which improves the accuracy of calculating the dummy head offset in the far-end sliding table test and reduces the error of the dummy head offset calculation result.
[0078] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 3 In the method for testing the dummy head displacement, step S10 further includes steps S11 to S13:
[0079] Step S11, determining a first grayscale image and a second grayscale image according to an initial frame test image;
[0080] It can be understood that the first grayscale image refers to the grayscale image of the dummy's head corresponding to the left camera, and the second grayscale image refers to the grayscale image of the dummy's head corresponding to the right camera.
[0081] In a specific implementation, the initial frame test images captured by the binocular cameras include the initial frame images captured by the left camera and the initial frame images captured by the right camera. Therefore, the initial frame test images are preprocessed, that is, the initial frame test images are grayscaled, that is, the grayscale image of the dummy head corresponding to the left camera and the grayscale image of the dummy head corresponding to the right camera are obtained.
[0082] Step S12, determining first feature pixel coordinates according to the first grayscale image and a preset feature detection strategy;
[0083] It can be understood that the preset feature detection strategy refers to a pre-set feature point detection strategy, including the Harris corner detection algorithm or using Canny edge detection or Sobel operator to find edges, and then detecting circles through Hough circle transform, etc. The first feature pixel coordinate refers to the feature point pixel coordinate corresponding to the dummy image captured by the left camera.
[0084] In the specific implementation, this embodiment adopts the Harris corner point detection method for the detection of circular feature points. The implementation principle is that when the small window is translated in all directions in the image, its internal grayscale value changes, and it can be judged that there are circular feature points inside the small window. Further, the point with equal displacement in all directions when the grayscale value changes (i.e., the center of the circular feature point) is taken as the extracted corner point, and finally the detection and extraction of the circular feature point is realized, and the pixel coordinates of the feature point corresponding to the dummy image collected by the left camera are obtained.
[0085] In a feasible implementation, step S12 may include steps A121 to A123:
[0086] Step A121, determining a plurality of image grayscale values and grayscale value directions according to the first grayscale image and a preset feature detection strategy;
[0087] It can be understood that the image grayscale value refers to a quantitative indicator that describes the color depth of pixels in the image in a grayscale image, and the grayscale value direction refers to the direction in which the grayscale value in the image changes.
[0088] In the specific implementation, the Harris corner detection method is used, that is, the grayscale value size and the direction of grayscale value change in the image are obtained by translating a small window in various directions within the image, that is, determining multiple image grayscale values and the direction of grayscale value change in the image.
[0089] Step A122, determining corresponding grayscale value variances according to the grayscale values of the multiple images;
[0090] It can be understood that the gray value variance is used to quantify the gray value variation. The variance is calculated by obtaining the size of each gray value in the image, and then the gray value variance is obtained. The position of the circular feature point can be accurately detected according to the quantified gray value variation.
[0091] Step A123, determining the first characteristic pixel coordinates according to the gray value variance and the gray value direction.
[0092] It can be understood that when the small window is translated in all directions within the image, its internal grayscale value changes. It can be judged that there are circular feature points inside the small window. Furthermore, the points where the displacement in all directions is equal when the grayscale value changes (i.e., the center of the circular feature point) are taken as the extracted corner points. Finally, the detection and extraction of the circular feature points are realized, that is, the pixel coordinates of the feature points corresponding to the dummy image captured by the left camera are obtained.
[0093] Step S13: determining target feature point coordinates according to the first feature pixel coordinates and the second grayscale image.
[0094] It can be understood that, based on the pixel coordinates of the feature points corresponding to the dummy image captured by the left camera, feature matching is performed on the circular feature points on the first frame image captured by the right camera, so as to obtain the position of the center feature point of the image captured by the right camera corresponding to the image captured by the left camera, and complete the feature matching of the left and right cameras, that is, determine the coordinates of the circular feature mark on the dummy's face.
[0095] In a feasible implementation, step S13 may include steps A131 to A133:
[0096] Step A131, determining the second feature pixel coordinates according to the second grayscale image and the preset feature detection strategy;
[0097] It can be understood that the second characteristic pixel coordinates refer to the characteristic point pixel coordinates corresponding to the dummy image captured by the right camera.
[0098] In the specific implementation, this embodiment adopts the Harris corner point detection method for the detection of circular feature points. The implementation principle is that when the small window is translated in all directions in the image, its internal grayscale value changes, and it can be judged that there are circular feature points inside the small window. Further, the points with equal displacement in all directions when the grayscale value changes (i.e., the center of the circular feature point) are taken as the extracted corner points, and finally the detection and extraction of circular feature points are realized, and the pixel coordinates of the feature points corresponding to the dummy image collected by the right camera are obtained.
[0099] Step A132, determining a feature matching result according to the first feature pixel coordinates and the second feature pixel coordinates;
[0100] It can be understood that the feature matching result refers to the circular feature point matching result of the dummy's head, including a feature matching success result and a feature matching failure result. The feature matching success result indicates that the feature matching of the left and right cameras is completed.
[0101] Step A133, determining the target feature point coordinates according to the feature matching results.
[0102] In the specific implementation, the pixel coordinates of the feature points corresponding to the dummy image collected by the left camera are matched with the pixel coordinates of the feature points corresponding to the dummy image collected by the right camera, that is, the same feature descriptor algorithm is applied to the right camera image to extract the feature point description on the right camera image. A feature matching algorithm (such as FLANN or BFMatcher) is used to find the best match between the feature point descriptions of the left camera and the right camera. Then the corresponding position of the feature point on the left camera image on the right camera image is found, and finally the coordinates of the circular feature points on the dummy head are determined.
[0103] In a feasible implementation manner, step A133 may include steps B1331 to B1332:
[0104] Step B1331, when the feature matching result is a successful feature matching, obtaining the pixel coordinates of the feature points;
[0105] It can be understood that a successful feature matching result indicates that the feature matching of the left and right cameras is completed, and the pixel coordinates of the feature points refer to the pixel coordinates of the circular feature points on the dummy's head.
[0106] Step B1332, determining the target feature point coordinates according to the feature point pixel coordinates and the coordinate mapping relationship.
[0107] In a specific implementation, the pixel coordinates of the circular feature points on the dummy head are converted through a preset coordinate conversion relationship, that is, the pixel coordinates of the circular feature points on the dummy head are converted into vehicle body coordinates to obtain the coordinates of the circular feature points on the dummy head.
[0108] In a feasible implementation manner, before step B1332, steps C13321 to C13323 may also be included:
[0109] Step C13321, obtaining a target camera image corresponding to a preset calibration object;
[0110] It can be understood that the preset calibration object refers to a pre-set calibration object, and the target camera image refers to an image of the preset calibration object captured by the binocular camera.
[0111] In a specific implementation, in order to perform stereo calibration on the left and right cameras, a known calibration object is set, and then the known calibration object is photographed by a binocular camera to obtain a preset calibration object image photographed by the binocular camera, that is, the known calibration object photographed by the left camera and the known calibration object photographed by the right camera.
[0112] Step C13322, determining camera internal and external parameters according to the target camera image;
[0113] It can be understood that the camera internal and external parameters refer to the internal and external parameters of the calibrated binocular camera.
[0114] In a specific implementation, the intrinsic and extrinsic parameters of the binocular camera are stereo calibrated according to the known calibration objects photographed by the left camera and the known calibration objects photographed by the right camera to obtain the calibrated intrinsic and extrinsic parameters of the binocular camera.
[0115] Step C13323, determining the coordinate mapping relationship according to the camera internal and external parameters and a preset coordinate calibration strategy.
[0116] It can be understood that the preset coordinate calibration strategy refers to a preset coordinate mapping relationship calibration strategy, that is, a mapping relationship between calibrated pixel coordinates and vehicle body coordinates.
[0117] In a specific implementation, the mapping relationship of the coordinates is calibrated according to the internal and external parameters of the binocular camera after calibration, that is, the mapping relationship between the calibrated pixel coordinates and the vehicle body coordinates, and finally the coordinate mapping relationship is obtained.
[0118] It should be noted that, in this embodiment, the left and right cameras are first calibrated in stereo. Camera calibration is to obtain the internal and external parameters of the camera by shooting a known calibration object, and establish a mapping relationship from pixel coordinates to world coordinates. In this embodiment, the calibration object uses the circular features of the dummy's face. When the dummy is placed in the test, a three-coordinate measuring instrument is used to measure the feature points to obtain the spatial coordinates in the body coordinate system, and then convert them to obtain the mapping relationship.
[0119] This embodiment determines the first grayscale image and the second grayscale image according to the initial frame test image; determines the first feature pixel coordinates according to the first grayscale image and the preset feature detection strategy; and determines the target feature point coordinates according to the first feature pixel coordinates and the second grayscale image. The initial frame test image is converted into a grayscale image to obtain the first grayscale image and the second grayscale image, and then the feature points in the first grayscale image are identified according to the Harris corner detection algorithm to obtain the corresponding first feature pixel coordinates. Finally, the feature point coordinates are obtained according to the first feature pixel coordinates and the second grayscale image. The accuracy of feature point identification is improved, thereby improving the accuracy of dummy head offset calculation.
[0120] For example, in order to help understand the implementation process of the dummy head offset test method obtained by combining this embodiment with the above-mentioned embodiment 1, please refer to Figure 4 , Figure 4 A brief flow diagram of a dummy head offset test method is provided. Specifically, first, the left and right cameras are calibrated in stereo. Camera calibration is to obtain the internal and external parameters of the camera by shooting a known calibration object, and establish a mapping relationship from pixel coordinates to world coordinates. In this technology, the calibration object uses the circular feature of the dummy's face. When the dummy is placed in the test, the feature point is measured by a three-coordinate measuring instrument to obtain the spatial coordinates of the body coordinate system, and the mapping relationship is converted. After the calibration is completed, the first frame image captured by the left camera (i.e., time 0 of the test) is taken to complete the image preprocessing, and the pixel coordinates of the center of the circular feature point are obtained by using the Harris corner detection algorithm. The circular feature points on the first frame image captured by the right camera are feature matched, so as to obtain the position of the center feature point on the image captured by the right camera corresponding to the image captured by the left camera, and complete the feature matching of the left and right cameras. Finally, feature tracking is performed on the image after matching, and the pixel coordinates of the circular feature points in each frame of the image are obtained. Then, according to the feature point coordinates measured before the test, the coordinate conversion formula can be used to realize the conversion from pixel coordinates to body coordinates, and the body coordinates of the circular feature points are obtained, and then the displacement curve of the feature points is obtained.
[0121] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the dummy head displacement test method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0122] This application also provides a dummy head displacement test device, please refer to Figure 5 , the dummy head offset testing device comprises:
[0123] A processing module 10 is used to determine the coordinates of the target feature points according to the initial frame test image;
[0124] The processing module 10 is further used to determine a head offset curve according to the target feature point coordinates and the test head image corresponding to each image frame;
[0125] The testing module 20 is used to determine a target test result according to the head offset curve.
[0126] Optionally, the processing module 10 is further used for:
[0127] Determine a first grayscale image and a second grayscale image according to an initial frame test image;
[0128] Determine first feature pixel coordinates according to the first grayscale image and a preset feature detection strategy;
[0129] The target feature point coordinates are determined according to the first feature pixel coordinates and the second grayscale image.
[0130] Optionally, the processing module 10 is further used for:
[0131] Determine a plurality of image grayscale values and grayscale value directions according to the first grayscale image and a preset feature detection strategy;
[0132] Determine the corresponding gray value variance according to the gray values of the multiple images;
[0133] The first characteristic pixel coordinates are determined according to the gray value variance and the gray value direction.
[0134] Optionally, the processing module 10 is further used for:
[0135] Determine a second feature pixel coordinate according to the second grayscale image and the preset feature detection strategy;
[0136] Determine a feature matching result according to the first feature pixel coordinates and the second feature pixel coordinates;
[0137] The target feature point coordinates are determined according to the feature matching results.
[0138] Optionally, the processing module 10 is further used for:
[0139] When the feature matching result is that the feature matching is successful, obtaining the pixel coordinates of the feature points;
[0140] The target feature point coordinates are determined according to the feature point pixel coordinates and the coordinate mapping relationship.
[0141] Optionally, the processing module 10 is further used for:
[0142] Obtain the target camera image corresponding to the preset calibration object;
[0143] Determine camera internal and external parameters according to the target camera image;
[0144] The coordinate mapping relationship is determined according to the camera internal and external parameters and a preset coordinate calibration strategy.
[0145] Optionally, the processing module 10 is further used for:
[0146] Determine the image pixel coordinates corresponding to each image frame according to the target feature point coordinates and the test head image corresponding to each image frame;
[0147] Determine a plurality of conversion feature coordinates according to the image pixel coordinates corresponding to each image frame and the coordinate mapping relationship;
[0148] A head offset curve is determined based on a plurality of transformed feature coordinates.
[0149] The dummy head offset test device provided by the present application adopts the dummy head offset test method in the above embodiment, which can solve the technical problem of low accuracy of the dummy head offset calculation method in the existing far-end slide test. Compared with the prior art, the beneficial effects of the dummy head offset test device provided by the present application are the same as the beneficial effects of the dummy head offset test method provided by the above embodiment, and the other technical features of the dummy head offset test device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0150] The present application provides a dummy head offset testing device, the dummy head offset testing device comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the dummy head offset testing method in the above-mentioned embodiment one.
[0151] Reference below Figure 6 , which shows a schematic diagram of the structure of a dummy head displacement test device suitable for implementing the embodiment of the present application. The dummy head displacement test device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The dummy head displacement test device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0152] like Figure 6As shown, the dummy head displacement test device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM) 1004. Various programs and data required for the operation of the dummy head displacement test device are also stored in the RAM 1004. The processing device 1001, the ROM 1002, and the RAM 1004 are connected to each other via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems may be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 may allow the dummy head offset test device to communicate wirelessly or wired with other devices to exchange data. Although the dummy head offset test device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have instead.
[0153] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0154] The dummy head offset test device provided by the present application adopts the dummy head offset test method in the above embodiment, which can solve the technical problem of low accuracy of the dummy head offset calculation method in the existing far-end slide test. Compared with the prior art, the beneficial effects of the dummy head offset test device provided by the present application are the same as the beneficial effects of the dummy head offset test method provided by the above embodiment, and the other technical features of the dummy head offset test device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0155] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0156] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0157] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the dummy head offset testing method in the above-mentioned embodiment.
[0158] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0159] The computer-readable storage medium may be included in the dummy head displacement test device; or may exist independently without being assembled into the dummy head displacement test device.
[0160] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the dummy head offset test device, the dummy head offset test device: determines the target feature point coordinates based on the initial frame test image; determines the head offset curve based on the target feature point coordinates and the test head image corresponding to each image frame; and determines the target test result based on the head offset curve.
[0161] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0162] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0163] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0164] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned dummy head offset test method, and can solve the technical problem of low accuracy of the dummy head offset calculation method in the existing far-end slide test. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the dummy head offset test method provided by the above-mentioned embodiment, and will not be elaborated here.
[0165] The present application also provides a computer program product, including a computer program, which implements the steps of the dummy head offset testing method as described above when executed by a processor.
[0166] The computer program product provided by the present application can solve the technical problem of low accuracy of the dummy head offset calculation method in the existing far-end slide test. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the dummy head offset test method provided by the above embodiment, which will not be elaborated here.
[0167] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A method for testing the displacement of a dummy head. It is characterized in that The dummy head offset test method comprises: Determine the coordinates of the target feature points according to the initial frame test image; Determine a head offset curve according to the target feature point coordinates and the test head image corresponding to each image frame; A target test result is determined based on the head offset curve.
2. The method according to claim 1, It is characterized in that The step of determining the target feature point coordinates according to the initial frame test image includes: Determine a first grayscale image and a second grayscale image according to an initial frame test image; Determine first feature pixel coordinates according to the first grayscale image and a preset feature detection strategy; The target feature point coordinates are determined according to the first feature pixel coordinates and the second grayscale image.
3. The method according to claim 2, It is characterized in that The determining the first feature pixel coordinates according to the first grayscale image and a preset feature detection strategy includes: Determine a plurality of image grayscale values and grayscale value directions according to the first grayscale image and a preset feature detection strategy; Determine the corresponding gray value variance according to the gray values of the multiple images; The first characteristic pixel coordinates are determined according to the gray value variance and the gray value direction.
4. The method according to claim 2, It is characterized in that The determining the target feature point coordinates according to the first feature pixel coordinates and the second grayscale image includes: Determine a second feature pixel coordinate according to the second grayscale image and the preset feature detection strategy; Determine a feature matching result according to the first feature pixel coordinates and the second feature pixel coordinates; The target feature point coordinates are determined according to the feature matching results.
5. The method according to claim 4, It is characterized in that The determining the target feature point coordinates according to the feature matching result includes: When the feature matching result is that the feature matching is successful, obtaining the pixel coordinates of the feature points; The target feature point coordinates are determined according to the feature point pixel coordinates and the coordinate mapping relationship.
6. The method according to claim 5, It is characterized in that Before determining the target feature point coordinates according to the feature point pixel coordinates and the coordinate mapping relationship, the method further includes: Obtain the target camera image corresponding to the preset calibration object; Determine camera internal and external parameters according to the target camera image; The coordinate mapping relationship is determined according to the camera internal and external parameters and a preset coordinate calibration strategy.
7. The method according to claim 1, It is characterized in that The step of determining the head offset curve according to the target feature point coordinates and the test head image corresponding to each image frame includes: Determine the image pixel coordinates corresponding to each image frame according to the target feature point coordinates and the test head image corresponding to each image frame; Determine a plurality of conversion feature coordinates according to the image pixel coordinates corresponding to each image frame and the coordinate mapping relationship; A head offset curve is determined based on a plurality of transformed feature coordinates.
8. A dummy head deviation test device, It is characterized in that The device comprises: A processing module, used for determining the coordinates of target feature points according to the initial frame test image; The processing module is further used to determine a head offset curve according to the target feature point coordinates and the test head image corresponding to each image frame; A testing module is used to determine a target test result according to the head offset curve.
9. A dummy head offset test device, It is characterized in that The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the dummy head displacement testing method according to any one of claims 1 to 7.
10. A storage medium, It is characterized in that The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the dummy head displacement testing method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Binocular vision positioning method based on semantic target
CN112884841A
Measurement method and device for dummy motion response in collision test and storage medium
CN114486292A
High-speed vision measurement method for impact test dynamic response
CN116818252A
Spatial information dynamic measurement method and device, dynamic measurement equipment and storage medium
CN117760672A
Method and system for vehicle Anti-collision pre-warning based on binocular stereo vision
WO2018058356A1
