Detection unit position regulation and control method and track processing system
Through thermal imaging image and image recognition models, the driver's mouth position is determined and vertical and horizontal adjustments are performed, which solves the problem of long adjustment time for drunk driving detection in the prior art and improves detection efficiency.
Patent Information
- Application Number
- CN202510295203.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-13
- Publication Date
- 2025-04-11
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing alcohol testing unit needs a long time to adjust the position before performing drunk driving testing, resulting in low detection efficiency.
By acquiring the driver's thermal image, the driver's mouth position is determined using a pre-trained image recognition model, and a preliminary adjustment in the vertical direction is performed before the target vehicle reaches the detection position, and a horizontal direction is performed after arrival to simplify the position adjustment process.
Reduce the testing time and improve the efficiency of drunk driving testing.
Smart Images

Figure CN119811102A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of detection unit movement control, and in particular to a detection unit position control method and a trajectory processing system. Background Art
[0002] Driving under the influence of alcohol will seriously weaken the driver's reaction speed, judgment and body coordination, leading to inaccurate vehicle control and reduced emergency avoidance capabilities, which can easily cause major traffic accidents. After drinking, the human body's visual perception range is narrowed and the behavioral decision-making mechanism is disordered. These physiological injuries not only endanger the driver's own safety, but also pose a fatal threat to other participants on the road, while increasing the overall risk of the traffic system. In order to prevent the impact of drunk driving on public safety, it is necessary to conduct a breathalyzer test on the driver to determine whether the driver is driving under the influence of alcohol.
[0003] Current alcohol detection units usually need to wait for the vehicle to completely stop at the designated detection point before they can start moving and operating processes. This type of passive response mode requires the vehicle to stop first, adjust the alcohol detection unit to correspond to the window once, then capture the driver's facial position, and then adjust the alcohol detection unit's robotic arm to correspond to the driver's mouth a second time. A long time is required for preparation and adjustment before the drunk driving test, which makes the single drunk driving test cycle long and leads to low drunk driving test efficiency. Summary of the invention
[0004] The present application provides a detection unit position control method and trajectory processing system, which can perform a first vertical adjustment according to the driver's mouth position before the target vehicle arrives at the detection position. After the target vehicle arrives at the detection position, alcohol detection only needs to be performed by adjusting in the horizontal direction, which can simplify the position adjustment process, reduce the detection time, and improve the detection efficiency.
[0005] The present application provides a detection unit position control method, comprising: Acquire a thermal imaging image of the driver; the driver drives the target vehicle close to a detection position, a detection unit is provided next to the detection position, and the detection unit includes a position adjustment component, and the position adjustment component is used to move to the driver's mouth for alcohol detection; Determining the position of the driver's mouth based on the thermal imaging image and a pre-trained image recognition model; the image recognition model is used to determine the position of the driver's mouth based on the input thermal imaging image; Before the target vehicle reaches the detection position, the height of the position adjustment component is adjusted in the vertical direction according to the position of the driver's mouth and the end position of the position adjustment component, so that the position adjustment component and the driver's mouth are at the same height; After the target vehicle reaches the detection position, the position adjustment component is adjusted in the horizontal direction to translate to the driver's mouth position for alcohol detection according to the driver's mouth position and the end position of the position adjustment component.
[0006] In one embodiment of the present application, after the target vehicle reaches the detection position, the position adjustment component is adjusted horizontally to move to the driver's mouth position for alcohol detection according to the driver's mouth position and the end position of the position adjustment component, including: After the target vehicle reaches the detection position, the position adjustment component is adjusted in the horizontal direction according to the driver's mouth position, the first preset distance, and the end position of the position adjustment component so that the horizontal distance between the end of the position adjustment component and the driver's mouth is the first preset distance.
[0007] In one embodiment of the present application, after the target vehicle reaches the detection position, according to the driver's mouth position and the end position of the position adjustment component, before adjusting the position adjustment component in the horizontal direction to translate to the driver's mouth position for alcohol detection, the method further includes: Before the target vehicle arrives at the detection position, the vehicle driving information is obtained, wherein the vehicle driving information includes the real-time speed and acceleration of the target vehicle and the position distance between the target vehicle and the detection unit; Determining a theoretical parking position of the target vehicle according to the vehicle driving information; If the theoretical parking position and the end position of the position adjustment component are different in the horizontal direction, the end position of the position adjustment component is adjusted in the road indication direction according to the theoretical parking position and the end position of the position adjustment component.
[0008] In one embodiment of the present application, the method further includes: Obtain vehicle driving information; First indication information is generated according to the vehicle driving information, where the first indication information is used to indicate that the vehicle is stopped at a detection position.
[0009] In one embodiment of the present application, the method further includes: Acquire a first horizontal distance between a first vehicle side and a detection unit in a horizontal direction; the first vehicle side is a side of the target vehicle close to the detection unit; According to the first horizontal distance and the preset vehicle spacing, second indication information is determined, wherein the second indication information is used to instruct the target vehicle to move in a horizontal direction so that the distance between the target vehicle and the detection unit in the horizontal direction is greater than or equal to the preset vehicle spacing.
[0010] In one embodiment of the present application, determining the second indication information according to the first horizontal distance and the preset vehicle spacing includes: Determining a second horizontal distance between the driver's mouth position and the detection unit in the horizontal direction according to the driver's mouth position and the detection unit position; The second indication information is determined according to the first horizontal distance, the preset vehicle distance, the second horizontal distance, and the preset user distance.
[0011] In one embodiment of the present application, after the target vehicle reaches the detection position and before adjusting the end position of the position adjustment component according to the driver's mouth position, the method further includes: Acquire a position distance between the target vehicle and the detection unit, and a first horizontal distance between the first vehicle side and the detection unit in a horizontal direction; When the position spacing is less than or equal to the preset component starting spacing, the position adjustment component is adjusted according to the first horizontal distance, the end position of the position adjustment component, and the preset component spacing distance so that the distance between the end of the position adjustment component and the first vehicle side is the preset component spacing distance.
[0012] To achieve the above objectives and other related objectives, the present application provides a trajectory processing system, including: A data acquisition module is used to acquire a thermal imaging image of the driver; the driver drives the target vehicle to approach a detection position, a detection unit is arranged next to the detection position, and the detection unit includes a position adjustment component, and the position adjustment component is used to move to the driver's mouth for alcohol detection; A recognition module, used to determine the position of the driver's mouth based on the thermal imaging image and a pre-trained image recognition model; the image recognition model is used to determine the position of the driver's mouth based on the input thermal imaging image; The first adjustment module is used to adjust the height of the position adjustment component in the vertical direction according to the driver's mouth position and the end position of the position adjustment component before the target vehicle reaches the detection position, so that the position adjustment component and the driver's mouth position are at the same height; The second adjustment module is used to adjust the position adjustment component in the horizontal direction to translate to the driver's mouth position for alcohol detection according to the driver's mouth position and the end position of the position adjustment component after the target vehicle reaches the detection position.
[0013] In one embodiment of the present application, the second adjustment module is further used for: After the target vehicle reaches the detection position, the position adjustment component is adjusted in the horizontal direction according to the driver's mouth position, the first preset distance, and the end position of the position adjustment component so that the horizontal distance between the end of the position adjustment component and the driver's mouth is the first preset distance.
[0014] In one embodiment of the present application, the trajectory processing system further includes: A vehicle information acquisition module is used to acquire vehicle driving information before the target vehicle arrives at the detection position, wherein the vehicle driving information includes the real-time speed and acceleration of the target vehicle and the position distance between the target vehicle and the detection unit; A position prediction module, used to determine the theoretical parking position of the target vehicle according to the vehicle driving information; The third adjustment module is used to adjust the end position of the position adjustment component in the road indication direction according to the theoretical parking position and the end position of the position adjustment component if the theoretical parking position and the end position of the position adjustment component are different in the horizontal direction.
[0015] As described above, the detection unit position control method and trajectory processing system provided by the present application have the following beneficial effects: A detection unit position control method in the present application obtains a thermal imaging image of the driver, determines the driver's mouth position based on the thermal imaging image and a pre-trained image recognition model, and adjusts the height of the position adjustment component in the vertical direction according to the driver's mouth position and the end position of the position adjustment component before the target vehicle reaches the detection position. After the target vehicle reaches the detection position, the position adjustment component is adjusted in the horizontal direction to translate to the driver's mouth position for alcohol detection according to the driver's mouth position and the end position of the position adjustment component. By detecting the driver's mouth position through a thermal imaging image and pre-adjusting the position adjustment component before the target vehicle stops, the adjustment time of the position adjustment component after the target vehicle stops can be reduced, the alcohol detection time can be shortened, and the efficiency of alcohol detection can be improved.
[0016] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings: Figure 1 is a schematic diagram of an implementation environment of a detection unit position control method shown in an exemplary embodiment of the present application; Figure 2 is a flow chart of a detection unit position control method shown in an exemplary embodiment of the present application; Figure 3 is a schematic diagram of a target vehicle driving toward a detection position shown in an exemplary embodiment of the present application; Figure 4is a schematic diagram of a target vehicle approaching a detection unit shown in an exemplary embodiment of the present application; Figure 5 It is a structural block diagram of a trajectory processing system shown in an exemplary embodiment of the present application.
[0018] Description of reference numerals: 200, vehicle; 200a, vehicle driving towards the detection position; 200b, vehicle arriving at the detection position; 110, detection unit; 111, position adjustment component; 120, monitoring unit; 130, gate; 140, indication unit; 300, first vehicle side; 400, extension area. DETAILED DESCRIPTION
[0019] The following will describe the implementation methods of the present application with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific implementation methods, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be understood that the preferred embodiments are only for illustrating the present application, not for limiting the scope of protection of the present application.
[0020] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present application, and thus the drawings only show components related to the present application rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed at will, and the component layout may also be more complicated.
[0021] In the following description, a large number of details are discussed to provide a more thorough explanation of the embodiments of the present application. However, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present application difficult to understand.
[0022] See also Figure 1 , which is a schematic diagram of an implementation environment of a detection unit position control method shown as an exemplary embodiment of the present application.
[0023] The implementation environment may include a vehicle 200 , a detection unit 110 , a position adjustment component 111 , a monitoring unit 120 , a gate 130 , and an indication unit 140 .
[0024] The detection unit 110, the monitoring unit 120, the gate 130, and the indication unit 140 can perform data transmission. The monitoring unit 120 can include a microwave radar and an infrared sensor. The detection unit 110 can be integrated with a processing system. When the monitoring unit 120 detects that the distance of the target vehicle from the detection unit 110 is less than or equal to the preset function activation distance, the monitoring unit 120 can obtain the thermal imaging image of the driver and send the thermal imaging image to the processing system of the detection unit 110. After the processing system of the detection unit 110 obtains the thermal imaging image transmitted by the monitoring unit 120, the driver's mouth position can be determined according to the thermal imaging image and the pre-trained image recognition model. The mouth position can be a three-dimensional coordinate. A three-dimensional space coordinate system can be established with the detection unit 110 as the origin, the road indication direction as the Y axis, the horizontal direction toward the road as the X axis, and the vertical direction away from gravity as the Z axis. After determining the three-dimensional coordinates of the driver's mouth position, the monitoring unit 120 can monitor the distance between the target vehicle and the detection position in real time. Before the target vehicle reaches the detection position, the vertical adjustment amount can be determined according to the driver's mouth position and the initial position of the position adjustment component 111, and the position adjustment component performs height adjustment in the vertical direction according to the vertical adjustment amount. After the target vehicle reaches the detection position, the horizontal adjustment amount can be determined according to the driver's mouth position and the current position of the position adjustment component, and the position adjustment component performs adjustment in the horizontal direction, or in the horizontal direction and the road indication direction according to the horizontal adjustment amount.
[0025] It should be noted that the processing system can be integrated in the detection unit 110, and the processing system can also be a terminal, a server, or a server cluster. When the processing system is a terminal, a server, or a server cluster, the processing system needs to perform data transmission with the detection unit 110, the monitoring unit 120, the gate 130, and the indication unit 140.
[0026] The detection unit 110 may be an alcohol detection robot, and the position adjustment component 111 may be a robotic arm.
[0027] See also Figure 2 , Figure 2 is a flow chart of a detection unit position control method shown in an exemplary embodiment of the present application. The detection unit position control method can be applied to Figure 1 The implementation environment shown. Figure 2 It can be seen that the detection unit position control method may include: Step S210, obtaining a thermal imaging image of the driver.
[0028] The driver drives the target vehicle toward a detection position, and a detection unit is provided next to the detection position. The detection unit includes a position adjustment component, and the position adjustment component is used to move to the driver's mouth for alcohol detection.
[0029] In one embodiment of the present application, the processing system may acquire a thermal imaging image of the driver.
[0030] It should be noted that the target vehicle may be the vehicle closest to the detection unit among the vehicles driving toward the detection unit, that is, the target vehicle is the vehicle with the shortest distance from the detection unit.
[0031] Step S220, determining the driver's mouth position based on the thermal imaging image and the pre-trained image recognition model.
[0032] Among them, the image recognition model is used to determine the driver's mouth position based on the input thermal imaging image.
[0033] In one embodiment of the present application, the processing system can determine the position of the driver's mouth based on the thermal imaging image and the pre-trained image recognition model. The thermal imaging image can be input into the pre-trained image recognition model to obtain the pixel coordinates and bounding box of the driver's mouth position. After obtaining the pixel coordinates of the driver's mouth, the straight-line distance from the driver's body to the monitoring unit can be obtained by microwave radar ranging. According to the straight-line distance and the internal parameters of the infrared camera, the Z-axis depth is calculated using similar triangles, and the horizontal coordinates X and Y are proportionally mapped to obtain the three-dimensional coordinates of the driver's mouth position. For example, the three-dimensional coordinates of the middle position of the driver's mouth can be determined as the three-dimensional coordinates of the driver's mouth position.
[0034] In one possible implementation, sample data may be used to train an image recognition model. The sample data may include a sample thermal imaging image. The position of a person's mouth in the sample thermal imaging image is set as a sample label. A trained image recognition model is obtained through training, that is, a pre-trained image recognition model.
[0035] It should be noted that if the driver does not exhale or wear a mask, the mouth area may not be clearly captured through the thermal imaging image. This phenomenon is also called weakened breathing features. In order to solve this problem, the image recognition model can be trained using sample data labeled with the driver's head information. The driver's head information may include head size, the position of the eyes in the head, the shoulder position, and the mouth position. The image recognition model can first identify the head size, the position of the eyes in the head, and the shoulder position, and then identify the mouth position based on the head size, the position of the eyes in the head, and the shoulder position, thereby enhancing the robustness of the image recognition model.
[0036] Exemplarily, the image recognition model may include a convolutional neural network model or a YOLO model, etc.
[0037] Thermal imaging works by capturing infrared radiation and can provide stable detection in total darkness, strong glare or rapidly changing lighting environments, avoiding the noise or overexposure problems of ordinary cameras in low light, reducing misjudgments and improving the accuracy of the driver's mouth position.
[0038] Step S230, before the target vehicle reaches the detection position, the height of the position adjustment component is adjusted in the vertical direction according to the driver's mouth position and the end position of the position adjustment component so that the position adjustment component and the driver's mouth position are at the same height.
[0039] In one embodiment of the present application, before the target vehicle reaches the detection position, the height of the position adjustment component can be adjusted in the vertical direction according to the driver's mouth position and the end position of the position adjustment component so that the position adjustment component and the driver's mouth position are at the same height.
[0040] In a possible implementation, a blowpipe may be provided at the end of the position adjustment component, and the driver may blow air into the blowpipe through his mouth to enable the detection unit to perform an alcohol test. After each alcohol test, the position adjustment component may be restored to an initial state, i.e., a detection process is started, and the end position of the position adjustment component is a preset three-dimensional coordinate.
[0041] In another possible implementation, the position adjustment component may be equipped with an encoder, and the real-time position of the end may be calculated through a forward kinematics model.
[0042] It should be noted that, when in use, the position adjustment component and the monitoring unit use the same coordinate system, that is, the three-dimensional coordinates of the driver's mouth position and the three-dimensional coordinates of the position adjustment component are in the same coordinate system.
[0043] The processing system can determine the vertical adjustment amount, that is, the difference in the Z axis, based on the three-dimensional coordinates of the driver's mouth and the three-dimensional coordinates of the position adjustment component. The detection unit can then adjust the height of the position adjustment component based on the vertical adjustment amount so that the position adjustment component and the driver's mouth are at the same height.
[0044] It should be noted that the detection position can be a position preset by the operator. The detection position can be under the premise that there is no collision between the side of the first vehicle and the detection unit, and the telescopic length of the position adjustment component can be used for alcohol detection.
[0045] Step S240, after the target vehicle reaches the detection position, the position adjustment component is adjusted in the horizontal direction according to the driver's mouth position and the end position of the position adjustment component to translate to the driver's mouth position for alcohol detection.
[0046] In one embodiment of the present application, after the target vehicle reaches the detection position, the position adjustment component can be adjusted in the horizontal direction to translate to the driver's mouth position for alcohol detection according to the driver's mouth position and the end position of the position adjustment component.
[0047] In one embodiment, after the target vehicle arrives at the detection position, the position adjustment component is adjusted in the horizontal direction to translate to the driver's mouth position for alcohol detection according to the driver's mouth position and the end position of the position adjustment component. This may include: after the target vehicle arrives at the detection position, the position adjustment component is adjusted in the horizontal direction according to the driver's mouth position, a first preset distance, and the end position of the position adjustment component, so that the horizontal distance between the end of the position adjustment component and the driver's mouth is the first preset distance.
[0048] In one embodiment of the present application, after the target vehicle reaches the detection position, the first adjustment position can be determined according to the driver's mouth position and the first preset distance. The first adjustment position can be a three-dimensional coordinate. The values of the Z axis and the Y axis in the three-dimensional coordinates of the first adjustment position are the same as the driver's mouth position. The value of the X axis in the three-dimensional coordinates of the first adjustment position is the difference between the value of the X axis of the three-dimensional coordinates of the driver's mouth position and the first preset distance. Afterwards, the horizontal adjustment amount that the end of the position adjustment component needs to adjust in the X axis can be determined according to the end position of the position adjustment component and the first adjustment position, and the position adjustment component can be adjusted according to the horizontal adjustment amount so that the distance between the end of the position adjustment component and the driver's mouth in the horizontal direction is the first preset distance.
[0049] For example, see Figure 3 , which is a schematic diagram of a target vehicle driving to a detection position shown in an exemplary embodiment of the present application. In the process of driving to the detection position, the vehicle 200a driving to the detection position can use the detection unit position control method provided in the embodiment of the present application to adjust the end position of the position adjustment component, and the vehicle 200b arriving at the detection position can be tested for alcohol through the end of the adjustment component.
[0050] In one embodiment, after the target vehicle reaches the detection position, according to the driver's mouth position and the end position of the position adjustment component, before adjusting the position adjustment component in the horizontal direction to translate to the driver's mouth position for alcohol detection, the detection unit position control method may further include steps S310 to S330: Step S310, before the target vehicle arrives at the detection position, the vehicle driving information is obtained.
[0051] The vehicle driving information includes the real-time speed and acceleration of the target vehicle, and the position distance between the target vehicle and the detection unit.
[0052] In one embodiment of the present application, the vehicle driving information can be obtained before the target vehicle reaches the detection position. The vehicle driving information can be obtained at a first preset time interval when the distance between the target vehicle and the detection unit is less than or equal to the first preset distance. The position distance from the current position of the target vehicle to the detection unit can be measured in real time by the microwave radar of the monitoring unit, and the position distance is the difference of the Y axis. The real-time speed of the target vehicle can be determined by the microwave radar. The acceleration can be determined based on the historical speed sequence of the target vehicle, and the historical speed sequence includes each real-time speed obtained.
[0053] Step S320, determining the theoretical parking position of the target vehicle according to the vehicle driving information.
[0054] In one embodiment of the present application, the theoretical parking position of the target vehicle can be determined based on the vehicle driving information. The theoretical parking position of the target vehicle can be predicted based on the real-time vehicle speed, acceleration, and position spacing, and the theoretical parking position includes the longitudinal position of the road indication direction.
[0055] Step S330: If the theoretical parking position and the end position of the position adjustment component are different in the horizontal direction, the end position of the position adjustment component is adjusted in the road indication direction according to the theoretical parking position and the end position of the position adjustment component.
[0056] In one embodiment of the present application, if the theoretical parking position and the end position of the position adjustment component are different in the horizontal direction, the end position of the position adjustment component can be adjusted in the road indication direction according to the theoretical parking position and the end position of the position adjustment component. The window data of the window relative to the center line of the vehicle can be obtained according to the identified target vehicle type (through the license plate number or the vehicle VIN code), the window position can be determined according to the theoretical parking position of the target vehicle and the window data, and the end position of the position adjustment component can be adjusted in the road indication direction according to the window position and the end position of the position adjustment component.
[0057] By predicting the parking position in real time, the position adjustment component can move to the estimated window position in advance, ensuring that the detection unit starts immediately when the vehicle is in place, reducing waiting time.
[0058] It should be noted that if the theoretical parking position and the end position of the position adjustment component are the same in the horizontal direction, that is, the coordinates on the X-axis are the same, there is no need to adjust the end position of the position adjustment component in the road indication direction.
[0059] In one embodiment, the detection unit position control method may further include: acquiring vehicle driving information; generating first indication information according to the vehicle driving information, the first indication information being used to indicate that the vehicle is stopped at the detection position.
[0060] In one embodiment of the present application, vehicle driving information can be obtained at a second preset time interval, and the vehicle driving information includes the real-time speed and acceleration of the target vehicle, and the position distance between the target vehicle and the detection unit. The predicted parking time at each time point can be determined according to the kinematic equation of uniformly accelerated linear motion, and the first indication information can be generated according to the predicted parking time. The first indication information can be displayed on the indication unit, and the first indication information can include the position distance and the predicted parking time. Through the first indication information, the driver can be guided to control the speed of the vehicle and reduce the risk of parking deviation.
[0061] In one embodiment, the detection unit position control method may further include: obtaining a first horizontal distance between the side of the first vehicle and the detection unit in the horizontal direction; the side of the first vehicle is the side of the target vehicle close to the detection unit; based on the first horizontal distance and the preset vehicle spacing, determining second indication information, the second indication information is used to instruct the target vehicle to move in the horizontal direction so that the distance between the target vehicle and the detection unit in the horizontal direction is greater than or equal to the preset vehicle spacing.
[0062] In one embodiment of the present application, since the first horizontal distance can be determined based on the time delay difference of the reflected signal from the side of the vehicle reaching different antennas, the first horizontal distance between the side of the first vehicle and the detection unit in the horizontal direction can be calculated by microwave radar combined with the phase difference of multiple antennas, and the first horizontal distance is converted into the three-dimensional coordinates of the side in a three-dimensional coordinate system, and the second indication information is determined based on the three-dimensional coordinates of the side and the preset vehicle spacing. The preset vehicle spacing represents the safe distance between the side of the vehicle and the detection unit in the horizontal direction. If the first horizontal distance between the side of the first vehicle and the detection unit is less than the preset vehicle spacing, the horizontal movement distance can be determined based on the difference between the preset vehicle spacing and the first horizontal distance. The second indication information can include the horizontal movement distance of the vehicle moving to the right. The second indication information can avoid collision between the side of the vehicle and the detection unit and / or the position adjustment component.
[0063] In a possible implementation, the process of determining the second indication information based on the first horizontal distance and the preset vehicle spacing may also include: determining the second horizontal distance between the driver's mouth position and the detection unit in the horizontal direction based on the driver's mouth position and the detection unit position; determining the second indication information based on the first horizontal distance, the preset vehicle spacing, the second horizontal distance, and the preset user spacing.
[0064] In one embodiment of the present application, when the first horizontal distance is greater than or equal to the preset vehicle spacing, there may be a spacing that is too large, resulting in the maximum extendable length of the position adjustment component being unable to meet the detection requirements, and therefore an auxiliary judgment is required based on the driver's mouth position. The second horizontal distance between the driver's mouth position and the detection unit in the horizontal direction can be determined based on the driver's mouth position and the detection unit position. The detection unit position can be preset, and the detection unit position can be a three-dimensional coordinate. The horizontal movement distance can be determined based on the first horizontal distance, the preset vehicle spacing, the second horizontal distance, and the preset user spacing. The determination of the horizontal movement distance needs to satisfy that the first horizontal distance needs to be greater than or equal to the preset vehicle spacing, and the second horizontal distance needs to be less than or equal to the preset user spacing, to ensure that the position adjustment component of the detection unit can be adjusted within the maximum extendable length.
[0065] For example, see Figure 4 , which is a schematic diagram of a target vehicle approaching a detection unit shown in an exemplary embodiment of the present application. The processing system can obtain the first vehicle side 300 identified by the microwave radar, and pre-store an extension area 400 consisting of the maximum extendable length of the position adjustment component. The maximum extendable length is the maximum length of the position adjustment component after the fulcrum of the position adjustment component is the center of the circle and the position adjustment component is fully extended.
[0066] In one embodiment, after the target vehicle reaches the detection position, based on the driver's mouth position and the end position of the position adjustment component, the detection unit position control method may further include: obtaining the position spacing between the target vehicle and the detection unit, and the first horizontal distance between the first vehicle side and the detection unit in the horizontal direction; when the position spacing is less than or equal to the preset component starting spacing, adjusting the position adjustment component based on the first horizontal distance, the end position of the position adjustment component, and the preset component spacing distance, so that the distance between the end of the position adjustment component and the first vehicle side is the preset component spacing distance.
[0067] By pre-adjusting the position adjustment component in the horizontal direction before reaching the measuring position, the adjustment time of the position adjustment component can be further shortened, thereby shortening the alcohol detection time.
[0068] It should be noted that all three-dimensional coordinates in the embodiments of the present application are in the same three-dimensional coordinate system.
[0069] Figure 5 FIG. 1 is a structural block diagram of a trajectory processing system shown in an exemplary embodiment of the present application. Figure 5 As shown, the exemplary trajectory processing system 500 includes: The data acquisition module 510 is used to acquire a thermal imaging image of the driver; the driver drives the target vehicle close to the detection position, and a detection unit is arranged next to the detection position. The detection unit includes a position adjustment component, and the position adjustment component is used to move to the driver's mouth for alcohol detection; The recognition module 520 is used to determine the position of the driver's mouth based on the thermal imaging image and a pre-trained image recognition model; the image recognition model is used to determine the position of the driver's mouth based on the input thermal imaging image; The first adjustment module 530 is used to adjust the height of the position adjustment component in the vertical direction according to the driver's mouth position and the end position of the position adjustment component before the target vehicle reaches the detection position, so that the position adjustment component and the driver's mouth position are at the same height; The second adjustment module 540 is used to adjust the position adjustment component in the horizontal direction to translate to the driver's mouth position for alcohol detection according to the driver's mouth position and the end position of the position adjustment component after the target vehicle reaches the detection position.
[0070] In one embodiment of the present application, the second adjustment module is further used for: After the target vehicle reaches the detection position, the position adjustment component is adjusted in the horizontal direction according to the driver's mouth position, the first preset distance, and the end position of the position adjustment component so that the horizontal distance between the end of the position adjustment component and the driver's mouth is the first preset distance.
[0071] In one embodiment of the present application, the trajectory processing system further includes: The vehicle information acquisition module is used to acquire the vehicle driving information before the target vehicle arrives at the detection position. The vehicle driving information includes the real-time speed and acceleration of the target vehicle and the position distance between the target vehicle and the detection unit; A position prediction module is used to determine the theoretical parking position of the target vehicle based on the vehicle driving information; The third adjustment module is used to adjust the end position of the position adjustment component in the road indication direction according to the theoretical parking position and the end position of the position adjustment component if the theoretical parking position and the end position of the position adjustment component are different in the horizontal direction.
[0072] It should be noted that the trajectory processing system provided in the above embodiment and the detection unit position control method provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs the operation has been described in detail in the method embodiment and will not be repeated here. In practical applications, the trajectory processing system provided in the above embodiment can distribute the above functions to different functional modules as needed, that is, divide the internal structure of the system into different functional modules to complete all or part of the functions described above, and this is not limited here.
[0073] An embodiment of the present application also provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by one or more processors, the electronic device implements the detection unit position control method provided in the above-mentioned embodiments.
[0074] Another aspect of the present application further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor of a computer, the computer executes the detection unit position control method provided in each of the above embodiments. The computer-readable storage medium may be included in the electronic device described in the above embodiments, or may exist independently without being assembled into the electronic device.
[0075] Another aspect of the present application further provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the detection unit position control method provided in each of the above embodiments.
[0076] In the embodiments of the present application, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance. "Including" and "comprising" mentioned throughout the specification and claims are open-ended terms and should be interpreted as "including but not limited to".
[0077] The above embodiments are merely illustrative of the principles and effects of the present application, and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.
Claims
1. A detection unit position control method, characterized in that: include: Acquire thermal imaging images of the driver; The driver drives the target vehicle close to the detection position, and a detection unit is arranged next to the detection position, and the detection unit includes a position adjustment component, and the position adjustment component is used to move to the driver's mouth to perform alcohol detection; Determining the position of the driver's mouth based on the thermal imaging image and a pre-trained image recognition model; The image recognition model is used to determine the driver's mouth position based on the input thermal imaging image; Before the target vehicle reaches the detection position, the height of the position adjustment component is adjusted in the vertical direction according to the position of the driver's mouth and the end position of the position adjustment component, so that the position adjustment component and the driver's mouth are at the same height; After the target vehicle reaches the detection position, the position adjustment component is adjusted in the horizontal direction to translate to the driver's mouth position for alcohol detection according to the driver's mouth position and the end position of the position adjustment component.
2. The detection unit position control method according to claim 1, characterized in that: After the target vehicle reaches the detection position, according to the driver's mouth position and the end position of the position adjustment component, the position adjustment component is adjusted in the horizontal direction to move to the driver's mouth position for alcohol detection, including: After the target vehicle reaches the detection position, the position adjustment component is adjusted in the horizontal direction according to the driver's mouth position, the first preset distance, and the end position of the position adjustment component so that the horizontal distance between the end of the position adjustment component and the driver's mouth is the first preset distance.
3. The detection unit position control method according to claim 1, characterized in that: After the target vehicle reaches the detection position, according to the driver's mouth position and the end position of the position adjustment component, before adjusting the position adjustment component in the horizontal direction to translate to the driver's mouth position for alcohol detection, the method further includes: Before the target vehicle arrives at the detection position, the vehicle driving information is obtained, wherein the vehicle driving information includes the real-time speed and acceleration of the target vehicle and the position distance between the target vehicle and the detection unit; Determining a theoretical parking position of the target vehicle according to the vehicle driving information; If the theoretical parking position and the end position of the position adjustment component are different in the horizontal direction, the end position of the position adjustment component is adjusted in the road indication direction according to the theoretical parking position and the end position of the position adjustment component.
4. The detection unit position control method according to claim 1, characterized in that: The method further comprises: Obtain vehicle driving information; First indication information is generated according to the vehicle driving information, where the first indication information is used to indicate that the vehicle is stopped at a detection position.
5. The detection unit position control method according to claim 1, characterized in that: The method further comprises: Acquire a first horizontal distance between a first vehicle side and a detection unit in a horizontal direction; the first vehicle side is a side of the target vehicle close to the detection unit; According to the first horizontal distance and the preset vehicle spacing, second indication information is determined, wherein the second indication information is used to instruct the target vehicle to move in a horizontal direction so that the distance between the target vehicle and the detection unit in the horizontal direction is greater than or equal to the preset vehicle spacing.
6. The detection unit position control method according to claim 5, characterized in that: Determining second indication information according to the first horizontal distance and a preset vehicle spacing includes: Determining a second horizontal distance between the driver's mouth position and the detection unit in the horizontal direction according to the driver's mouth position and the detection unit position; The second indication information is determined according to the first horizontal distance, the preset vehicle distance, the second horizontal distance, and the preset user distance.
7. The detection unit position control method according to claim 1, characterized in that: After the target vehicle reaches the detection position and before adjusting the end position of the position adjustment component according to the driver's mouth position, the method further includes: Acquire a position distance between the target vehicle and the detection unit, and a first horizontal distance between the first vehicle side and the detection unit in a horizontal direction; When the position spacing is less than or equal to the preset component starting spacing, the position adjustment component is adjusted according to the first horizontal distance, the end position of the position adjustment component, and the preset component spacing distance so that the distance between the end of the position adjustment component and the first vehicle side is the preset component spacing distance.
8. A trajectory processing system, characterized in that: include: A data acquisition module, used for acquiring a thermal imaging image of the driver; The driver drives the target vehicle close to the detection position, and a detection unit is arranged next to the detection position, and the detection unit includes a position adjustment component, and the position adjustment component is used to move to the driver's mouth to perform alcohol detection; A recognition module, used to determine the position of the driver's mouth based on the thermal imaging image and a pre-trained image recognition model; The image recognition model is used to determine the driver's mouth position based on the input thermal imaging image; The first adjustment module is used to adjust the height of the position adjustment component in the vertical direction according to the driver's mouth position and the end position of the position adjustment component before the target vehicle reaches the detection position, so that the position adjustment component and the driver's mouth position are at the same height; The second adjustment module is used to adjust the position adjustment component in the horizontal direction to translate to the driver's mouth position for alcohol detection according to the driver's mouth position and the end position of the position adjustment component after the target vehicle reaches the detection position.
9. The trajectory processing system according to claim 8, characterized in that: The second adjustment module is also used for: After the target vehicle reaches the detection position, the position adjustment component is adjusted in the horizontal direction according to the driver's mouth position, the first preset distance, and the end position of the position adjustment component so that the horizontal distance between the end of the position adjustment component and the driver's mouth is the first preset distance.
10. The trajectory processing system according to claim 8, characterized in that: The trajectory processing system also includes: A vehicle information acquisition module is used to acquire vehicle driving information before the target vehicle arrives at the detection position, wherein the vehicle driving information includes the real-time speed and acceleration of the target vehicle and the position distance between the target vehicle and the detection unit; A position prediction module, used to determine the theoretical parking position of the target vehicle according to the vehicle driving information; The third adjustment module is used to adjust the end position of the position adjustment component in the road indication direction according to the theoretical parking position and the end position of the position adjustment component if the theoretical parking position and the end position of the position adjustment component are different in the horizontal direction.
Citation Information
Patent Citations
Vehicle driving assistance method and system and vehicle
CN110281939A
Inspection and quarantine intelligent safety early warning method and device and electronic system
CN111916219A
Driving behavior detection method and device and electronic equipment
CN114005105A
Facial recognition-based driver recognition system
CN116824519A
Information acquisition system and information acquisition method
CN117759847A
Cited By
Drunk driving automatic detection method and system based on deep learning model and robot system
CN120894671A
Method and system for automatic detection of drunk driving based on deep learning model and robot system
CN120894671B