Obstacle alarm method and device based on vehicle, electronic equipment and storage medium
By converting the obstacle position data into data in the coordinate system with the preset detector in the vehicle as the origin, and comparing it to alarm, the problem of low accuracy of obstacle alarm in the prior art is solved, and the user is improved Experience.
Patent Information
- Application Number
- CN202411219426.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-02
- Publication Date
- 2024-12-06
AI Technical Summary
The existing vehicle obstacle alarm method is not accurate and cannot adapt to the driving needs of different users, resulting in poor user experience.
By obtaining the position data of the obstacle detected by the target detector and converting it into position data in the coordinate system with the preset detector in the vehicle as the origin, it compares with the preset alarm range to accurately alarm.
The alarm range is adjusted according to the needs of different users, and the accuracy and user satisfaction of obstacle alarms are improved.
Smart Images

Figure CN119078868A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to a vehicle-based obstacle alarm method, device, electronic device and storage medium. Background Art
[0002] At present, the obstacle alarm function in vehicles generally has a fixed alarm range. When an obstacle appears within the alarm range, a warning will be issued. However, in actual use, each driver has a different understanding of the alarm. Some drivers tend to receive warnings at a closer distance. If the vehicle also alarms when the obstacle is too far away, it will lead to a poor user experience. Therefore, the current obstacle alarm method of vehicles is not accurate and cannot adapt to different users. Summary of the invention
[0003] In view of the above problems, the present application provides a vehicle-based obstacle warning method, device, electronic device and storage medium to solve the problem of low accuracy of obstacle warning methods in the prior art.
[0004] According to one aspect of the present application, a vehicle-based obstacle alarm method is provided, the obstacle alarm method comprising: acquiring first position data of an obstacle detected by a target detector, the first position data being polar coordinate data with the target detector as the origin; converting the first position data into second position data with an origin detector as the origin, the origin detector being any detector preset in the vehicle; comparing the second position data with preset alarm range data, and issuing an alarm based on a result of the comparison, different origin detectors corresponding to different preset alarm range data.
[0005] In an optional manner, the converting of the first position data into second position data with the origin detector as the origin further includes: converting the first position data into third position data, the third position data being rectangular coordinate data with the target detector as the origin; if the target detector is the origin detector, using the third position data as the second position data; if the target detector is not the origin detector, converting the third position data into the second position data.
[0006] In an optional manner, the preset alarm range data includes corresponding alarm range data in multiple directions, and the second position data includes corresponding parameters in the multiple directions; the comparison between the second position data and the preset alarm range data and the alarm based on the comparison result include: comparing the alarm range data corresponding to each of the multiple directions with the parameters to obtain the result; if the result indicates that the parameters in at least one direction of the multiple directions are within the corresponding alarm range, an alarm is issued.
[0007] In an optional manner, the alarm range data corresponding to the multiple directions include first alarm range data in a first direction, second alarm range data in a second direction, and third alarm range data in a third direction, and the first direction, the second direction and the third direction are orthogonal to each other; the second position data includes a first parameter in the first direction, a second parameter in the second direction, and a third parameter in the third direction; the alarm range data corresponding to each direction in the multiple directions is compared with the position data to obtain the result, including: comparing the first parameter with the first alarm range data to obtain a first result; comparing the second parameter with the second alarm range data to obtain a second result; comparing the third parameter with the third alarm range data to obtain a third result; and taking the first result, the second result and the third result as the result.
[0008] In an optional manner, before comparing the second position data with the preset alarm range data and issuing an alarm according to a result of the comparison, the obstacle alarm method further includes:
[0009] Acquire initial alarm range data; acquire optional alarm range data, wherein the optional alarm range data is within the initial alarm range data; and determine the preset alarm range data according to the optional alarm range data.
[0010] In an optional manner, determining the preset alarm range data based on the optional alarm range data further includes: determining the preset alarm range data based on shape parameters of the vehicle, the height of the origin detector and the optional alarm range data.
[0011] In an optional manner, the preset alarm range data includes first alarm range data in a first direction, second alarm range data in a second direction, and third alarm range data in a third direction, the first direction being the length direction of the vehicle, and the second direction being the width direction of the vehicle; the shape parameters of the vehicle include the length, width and height of the vehicle; determining the preset alarm range data based on the shape parameters of the vehicle, the height of the origin detector and the optional alarm range data further includes: determining the first alarm range data based on the length of the vehicle and the optional alarm range data in the first direction; determining the second alarm range data based on the width of the vehicle and the optional alarm range data in the second direction; determining the third alarm range data based on the height of the vehicle, the height of the origin detector and the optional alarm range data in the third direction.
[0012] According to another aspect of the present application, a vehicle-based obstacle warning device is provided, which includes: a first position data acquisition module, used to acquire first position data of an obstacle detected by a target detector, the first position data being polar coordinate data with the target detector as the origin; a second position data acquisition module, used to convert the first position data into second position data with an origin detector as the origin, the origin detector being any detector preset in the vehicle; an alarm module, used to compare the second position data with preset alarm range data, and to issue an alarm based on the comparison result, different origin detectors corresponding to different preset alarm range data.
[0013] According to one aspect of the present application, an electronic device is provided, comprising: a controller; and a memory for storing one or more programs, which, when executed by the controller, executes the above-mentioned vehicle-based obstacle warning method.
[0014] According to one aspect of the present application, a computer-readable storage medium is also provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a computer, the computer executes the above-mentioned vehicle-based obstacle warning method.
[0015] According to one aspect of the present application, a computer program product or a computer program is also provided, the computer program product or the computer program comprising computer instructions, the computer instructions being 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 above-mentioned vehicle-based obstacle warning method.
[0016] The present application sets an origin detector to convert the first position data detected by the detector in the vehicle into a coordinate system with the origin detector as the origin, thereby obtaining the second position data with the origin detector as the origin. By comparing the second position data with the preset alarm range data under the origin detector, an obstacle alarm can be accurately performed.
[0017] The above description is only an overview of the technical solution of the embodiment of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0019] Figure 1 It is a flowchart of a vehicle-based obstacle warning method shown in an exemplary embodiment of the present application.
[0020] Figure 2 It is a schematic diagram of the arrangement structure of a detector of a vehicle shown in an exemplary embodiment of the present application.
[0021] Figure 3 It is a schematic diagram of first position data obtained by a target detector shown in an exemplary embodiment of the present application.
[0022] Figure 4 1 is a schematic top view of initial range data of a vehicle shown in an exemplary embodiment of the present application.
[0023] Figure 5 1 is a schematic side view of initial range data of a vehicle according to an exemplary embodiment of the present application.
[0024] Figure 6 1 is a schematic top view of selectable warning range data of a vehicle shown in an exemplary embodiment of the present application.
[0025] Figure 7 It is a schematic top view of preset warning range data of a vehicle shown in an exemplary embodiment of the present application.
[0026] Figure 8 It is a schematic diagram of an application scenario of a vehicle-based obstacle warning method shown in an exemplary embodiment of the present application.
[0027] Fig. 9 It is a schematic structural diagram of an obstacle warning device for a vehicle shown in an exemplary embodiment of the present application.
[0028] Fig.10 It is a structural diagram of a computer system of an electronic device shown in an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0029] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.
[0030] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0031] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0032] The term "multiple" as used in this application refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.
[0033] The current vehicle-mounted obstacle alarm area has a fixed alarm range, but each customer has a different understanding of the corresponding alarm. If the obstacle is too far away, the alarm will be triggered, but the user feels that the alarm should not be triggered, which makes the user annoyed. The current solution allows users to customize the area and set the alarm area that the user is satisfied with; and the current obstacle distance information and whether the alarm is triggered are divided into two data processing units, which has a greater delay than putting them in one control unit.
[0034] To this end, one aspect of the present application provides a vehicle-based obstacle warning method. Figure 1 , Figure 11 is a flow chart of a vehicle-based obstacle warning method according to an exemplary embodiment of the present application. The information processing method at least includes S110 to S140, which are described in detail as follows:
[0035] S110: Acquire first position data of an obstacle detected by the target detector, where the first position data is polar coordinate data with the target detector as the origin.
[0036] In this embodiment, at least one detector is provided on the vehicle, and the at least one detector can obtain radar data, so that when an obstacle is detected, the position data of the obstacle can be obtained.
[0037] In some embodiments, Figure 2 As shown, there are 9 detectors on the vehicle, and in the direction of travel of the vehicle, the detectors are placed on the roof, the left front of the body, the front of the body, the right front of the body, the left side of the body, the right side of the body, the right rear of the body, and the left rear of the body.
[0038] In some embodiments, detectors may be placed on the roof and / or the left front of the vehicle body and / or the front of the vehicle body and / or the right front of the vehicle body and / or the left side of the vehicle body and / or the right side of the vehicle body and / or the right rear of the vehicle body and / or the left rear of the vehicle body.
[0039] In some embodiments, except Figure 2 The detectors shown in the figure may also be placed at other locations, and there is no specific limitation here.
[0040] In some embodiments, during the driving of the vehicle, the detector of the vehicle will detect whether there is an obstacle. It is understandable that when the vehicle is not in the parking gear, the detector of the vehicle will detect whether there is an obstacle.
[0041] When the detector of the vehicle detects an obstacle, the detector is used as a target detector and the first position data of the obstacle is obtained.
[0042] In this embodiment, the first position data is polar coordinate data, such as Figure 3 As shown in the figure, point O is set as the target detector and point P is the location of the obstacle. The first position data is (r, φ, θ), where r is the distance between the target detector and the obstacle, φ is the angle between the projection of r on the horizontal plane (parallel to the ground) and the ZOX plane, and θ is the angle between the OP segment and the positive direction of the Z axis.
[0043] S120: Convert the first position data into second position data with an origin detector as an origin, where the origin detector is any detector preset in the vehicle.
[0044] In some embodiments, the polar coordinate data is converted to rectangular coordinate data.
[0045] In one embodiment, the first position data is converted into third position data, and the third position data is rectangular coordinate data with the target detector as the origin; if the target detector is an origin detector, the third position data is used as the second position data; if the target detector is not an origin detector, the third position data is converted into the second position data.
[0046] In this embodiment, the third position data is rectangular coordinate data with the target detector as the origin. The first position data (r, φ, θ) can be converted into the third position coordinate data (x p =rsinθcosφ,y p =rsinθsinφ,z p =rcosθ).
[0047] In some embodiments, the origin detector is any preset detector, which can be understood as setting Figure 2 The detector 1 in the figure is the origin detector, and subsequently the second position data under the origin detector and the preset alarm range data determine whether to alarm.
[0048] It is understandable that different origin detectors will result in different second position data and corresponding preset alarm range data.
[0049] In some embodiments, the target detector is an origin detector, then the third position coordinate data (x p ,y p , z p ) is the second position data.
[0050] In some embodiments, if the target detector is not an origin detector, the position coordinate data of the target detector in a rectangular coordinate system with the origin detector as the origin can be obtained, and the second position data can be determined by the position coordinate data of the target detector and the third position data, that is, the third position data is translated to the rectangular coordinate system with the origin detector as the origin.
[0051] by Figure 2 Taking the detector in as an example, the origin detector is detector 1, and the target detector is detector 2. In the rectangular coordinate system with the origin detector as the origin, the coordinate position data of the origin detector is (0, 0, 0), and the coordinate position data of detectors 2 to 9 are respectively set to (x1, y1, z1)...(x8, y8, z8).
[0052] If the target detector is detector 2, the coordinate position data (x1, y1, z1) of detector 2 is translated to (0, 0, 0). At this time, the third position data (x p ,y p , z p ) is converted into the second position data (x p',y p ”z p ') can have: x p= x p '-x1, then x p '=x p +x1;y p =y p '-y1, then y p '=y p +y1;z p= z p '-z1, then z p '=z p +z1.
[0053] That is, the second position data is (x p +x1,y p +y1,z p +z1).
[0054] Of course, the above is exemplary. In other embodiments, for scenarios where the target detector and the origin detector are other detectors, the second position data can also be determined in the same manner, and no specific limitation is made here.
[0055] In one embodiment, the directions of the X, Y and Z axes of the rectangular coordinate system with the target detector as the origin and the rectangular coordinate system with the origin detector as the origin are the same, and only the positions of the origins are different.
[0056] S130: Compare the second position data with the preset alarm range data, and issue an alarm based on the comparison result.
[0057] In some embodiments, the specific values of the preset alarm range data may be different according to the needs of different users.
[0058] In some embodiments, the vehicle has initial alarm range data, which is adjustable alarm range data. In the initial alarm range data, the user can select and determine optional alarm range data, and the optional alarm range data is within the initial alarm range data.
[0059] In some embodiments, the initial warning range data may include at least one of initial range data in front of the vehicle, initial range data behind the vehicle, initial range data on the left of the vehicle, initial range data on the right of the vehicle, and initial range data above the vehicle in the direction of vehicle travel.
[0060] In some embodiments, different origin detectors correspond to different preset alarm range data.
[0061] The initial range data is the range data of a certain direction of the vehicle, such as the initial range data behind the vehicle, which is the range data from the rear of the vehicle.
[0062] like Figure 4 Shown and Figure 5 As shown, the initial range data on the left side of the vehicle and the initial range data on the right side of the vehicle can be between DISWmax and DISWmin; the initial range data in front of the vehicle can be between DISFRmax and DISFRmin; the initial range data behind the vehicle can be between DISRRmax and DISRRmin; and the initial range data above the vehicle can be between DISHmax and DISHmin.
[0063] It can be understood that DISWmax is the maximum warning distance between the obstacle and the right or left side of the vehicle, DISWmin is the minimum warning distance between the obstacle and the right or left side of the vehicle, DISFRmax is the maximum warning distance between the obstacle and the front of the vehicle, DISFRmin is the minimum warning distance between the obstacle and the front of the vehicle, DISRRmax is the maximum warning distance between the obstacle and the rear of the vehicle, DISRRmin is the minimum warning distance between the obstacle and the rear of the vehicle, DISHmax is the maximum warning distance between the obstacle and the top of the vehicle, and DISHmin is the minimum warning distance between the obstacle and the top of the vehicle.
[0064] The optional alarm range data is within the initial alarm range data, so that the alarm range can be adjusted according to different user driving needs to obtain the preset alarm range data.
[0065] It can be understood that the unit of the parameters in the above-mentioned initial range data is meter, the unit of the parameters in the optional alarm range data is meter, and the unit of the parameters in the preset alarm range data is meter.
[0066] In some embodiments, Wmax≥(DIS Wmas \DIS FRmax \DIS RRmax \DIS Hmax ), Hmax ≥ DIS Hmax .
[0067] The corresponding optional alarm range data is within the initial alarm range data, and the optional alarm range data is a distance parameter, and the distance parameter is within the initial range data in the corresponding direction.
[0068] like Figure 6 As shown, the distance parameter in front of the vehicle is Set _FR , the vehicle left distance parameter is Set_ LF , the vehicle right distance parameter is Set_RF , the vehicle rear distance parameter is Set_ RR , the distance parameter above the vehicle is Set _UP .
[0069] Set _FR The value is not greater than DISFRmax and not less than DISFRmin, Set_ LF The value is not greater than DISWmax and not less than DISWmin, Set_ RF The value is not greater than DISWmax and not less than DISWmin, Set_ RR The value is not greater than DISRRmax and not less than DISRRmin, Set _UP The value is not greater than DISHmax and not less than DISHmin.
[0070] Then, the preset alarm range data can be determined according to the optional alarm range data.
[0071] In this embodiment, the preset alarm range data can be determined based on the shape parameters of the vehicle, the height of the origin detector and the optional alarm range data. It can be understood that different origin detectors have different corresponding preset alarm range data.
[0072] In some embodiments, the shape parameters of the vehicle include the length, width and height of the vehicle, and the height of the origin detector is the height of the origin detector from the ground.
[0073] In one embodiment, the preset alarm range data includes first alarm range data in a first direction, second alarm range data in a second direction, and third alarm range data in a third direction, the first direction is the length direction of the vehicle, and the second direction is the width direction of the vehicle.
[0074] It can be understood that the first direction is the Y-axis direction, the second direction is the X-axis direction, and the third direction is the Z-axis direction. The XOY plane is established parallel to the ground, and the ZOY plane and the ZOX plane are established perpendicular to the ground.
[0075] The first alarm range data is determined based on the length of the vehicle and the optional alarm range data in the first direction; the second alarm range data is determined based on the width of the vehicle and the optional alarm range data in the second direction; the third alarm range data is determined based on the height of the vehicle, the height of the origin detector and the optional alarm range data in the third direction.
[0076] In one embodiment, the length, width, and height of the vehicle are a, b, and c respectively, and the height of the origin detection is c1. Figure 2 The detector 1 in the figure is taken as the origin detector. Figure 7, the first alarm range data is between OE or between CG, between OE, the first alarm range data is 0 to -Set _FR , between CG, the first alarm range number or data a to a+Set -RR , the first alarm range data is 0 to -Set _FR or a to a+Set _RR .
[0077] Figure 7 In the example, the distance between OB and OD is b / 2.
[0078] The second alarm range data is between BF or DH. Between BF, the second alarm range data is b / 2 to b / 2+Set_ LF , DH, the second alarm range data is -b / 2 to -(b / 2+Set_ LF ), the second alarm range data is b / 2 to b / 2+Set_ LF or -b / 2 to -(b / 2+Set_ LF ).
[0079] The third alarm range data is between MN, from (c-c1) to (c-c1+Set _UP ).
[0080] In some embodiments, the preset alarm range data includes corresponding alarm range data in multiple directions, and the second position data includes corresponding parameters in multiple directions; the alarm range data corresponding to each direction in the multiple directions are compared with the parameters to obtain results; if the result indicates that the parameters in at least one direction in the multiple directions are within the corresponding alarm range, an alarm is issued.
[0081] In some embodiments, the corresponding alarm range data in multiple directions include first alarm range data in the first direction, second alarm range data in the second direction, and third alarm range data in the third direction, and the first direction, the second direction, and the third direction are orthogonal to each other; the second position data includes a first parameter in the first direction, a second parameter in the second direction, and a third parameter in the third direction.
[0082] The first parameter is the value of the second position data on the Y axis, the second parameter is the value of the second position data on the X axis, and the third parameter is the value of the second position data on the Z axis.
[0083] Compare the first parameter with the first alarm range data to obtain a first result; compare the second parameter with the second alarm range data to obtain a second result; compare the third parameter with the third alarm range data to obtain a third result; take the first result, the second result and the third result as the result.
[0084] If the first result indicates that the first parameter is within the first alarm range data and / or the second result indicates that the second parameter is within the second alarm range data and / or the third result indicates that the third parameter is within the third alarm range data, an alarm is issued.
[0085] In one embodiment, if the target detector is an origin detector, then x p In the second alarm range data, y p Within the first alarm range data, within the third alarm range data, that is, or 0≤rsinθsinφ≤-Set _FR or a≤rsinθsinφ≤a+Set _R ;c-c1≤rcosφ≤c-c1+Set _UP .
[0086] In one embodiment, if the target detector is not an origin detector, then x p 'In the second alarm range data, y p Within the first alarm range data, z p 'In the third alarm range data, b / 2≤x p '≤b / 2+Set_ LF or -b / 2≤x p '≤-(b / 2+Set_ LF ); 0≤x p '≤-Set _FR or a≤rsinθsinφ≤a+Set _R ;c-c1≤rcosφ≤c-c1+Set _UP .
[0087] In some embodiments, the result may also indicate that the parameters in all directions in multiple directions are within the corresponding alarm range data, then an alarm is issued, that is, if the first result indicates that the first parameter is within the first alarm range data and the second result indicates that the second parameter is within the second alarm range data and the third result indicates that the third parameter is within the third alarm range data, then an alarm is issued.
[0088] In some embodiments, obstacles can also be divided into different areas in combination with different alarm scenarios. Only one direction, such as the first direction, is selected to compare the first parameter with the first alarm range data, and the second result obtained is used as the final result. Two directions can also be selected without specific restrictions here.
[0089] In this embodiment, by setting an origin detector, the first position data detected by the detector in the vehicle is converted into a coordinate system with the origin detector as the origin, thereby obtaining the second position data with the origin detector as the origin. By comparing the second position data with the preset alarm range data under the origin detector, an obstacle alarm can be accurately performed.
[0090] On the other hand, the preset alarm range data can be adjusted according to the optional alarm range data, and the optional alarm range data can be obtained by user setting. In this way, the vehicle-based obstacle alarm method can be suitable for different users, thereby improving user satisfaction.
[0091] In another exemplary embodiment of the present application, the application scenarios of the above-mentioned multiple vehicle-based obstacle warning methods are exemplarily described. Figure 8 , Figure 8 Schematic diagram of an application scenario of an obstacle alarm method for a vehicle shown in an exemplary embodiment of the present application, wherein a vehicle 800 is included, the vehicle 800 includes a host 801, an alarm device 802, and a radar detection system 803, and the three ends can be connected by wireless communication, and the present application does not limit the connection method between them.
[0092] In this embodiment, the radar detection system 803 includes multiple detectors, which are used to obtain the first position data of the obstacle and send the first position data of the obstacle to the host 801. The HUT host 801 obtains the first position data of the obstacle detected by the target detector, and the first position data is polar coordinate data with the target detector as the origin; the first position data is converted into second position data with the origin detector as the origin, and the origin detector is any detector preset in the vehicle; the second position data is compared with the preset alarm range data, and an alarm is issued according to the comparison result.
[0093] The alarm can be displayed on the screen of the host 801, and then the alarm information is transmitted to the alarm device 802, and the alarm device 802 can be a buzzer to emit a sound alarm.
[0094] In some embodiments, the vehicle may also include a power system and a body control system, etc., which can control the vehicle to avoid hitting obstacles after an alarm.
[0095] Host 801 can be a physical server, a server cluster or distributed system composed of multiple physical servers, or a HUT host, etc., where multiple servers can form a blockchain, and the server is a node on the blockchain. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network) and big data and artificial intelligence platforms, and this is not restricted here.
[0096] Another aspect of the present application also provides a vehicle-based obstacle warning device, such as Fig. 9 As shown, Fig. 9 1 is a schematic diagram of a vehicle-based obstacle warning device according to an exemplary embodiment of the present application. The vehicle-based obstacle warning device 900 includes:
[0097] The first position data acquisition module 910 is used to acquire first position data of an obstacle detected by the target detector. The first position data is polar coordinate data with the target detector as the origin.
[0098] The second position data acquisition module 930 is used to convert the first position data into second position data with the origin detector as the origin, and the origin detector is any detector preset in the vehicle.
[0099] The alarm module 950 is used to compare the second position data with the preset alarm range data and to issue an alarm according to the comparison result. Different origin detectors correspond to different preset alarm range data.
[0100] In an optional manner, the second location data acquisition module 930 further includes:
[0101] The third position data acquisition unit is used to convert the first position data into third position data, where the third position data is rectangular coordinate data with the target detector as the origin.
[0102] The second position data acquiring unit is used to use the third position data as the second position data if the target detector is an origin detector.
[0103] The second position data conversion unit is used to convert the third position data into the second position data if the target detector is not the origin detector.
[0104] In an optional manner, the preset alarm range data includes corresponding alarm range data in multiple directions, and the second position data includes corresponding parameters in multiple directions; the alarm module 950 includes:
[0105] The comparison result acquisition unit is used to compare the alarm range data corresponding to each direction in multiple directions with the parameters to obtain the result.
[0106] The alarm unit is used to issue an alarm if the result indicates that the parameter in at least one direction among the multiple directions is within the corresponding alarm range.
[0107] In an optional manner, the corresponding alarm range data in the multiple directions include first alarm range data in the first direction, second alarm range data in the second direction, and third alarm range data in the third direction, and the first direction, the second direction, and the third direction are orthogonal to each other; the second position data includes a first parameter in the first direction, a second parameter in the second direction, and a third parameter in the third direction; and the comparison result acquisition unit includes:
[0108] The first result acquisition module is used to compare the first parameter with the first alarm range data to obtain the first result.
[0109] The second result acquisition section is used to compare the second parameter with the first alarm range data to obtain the second result.
[0110] The third result acquisition module is used to compare the first parameter with the first alarm range data to obtain the third result.
[0111] The comparison result acquisition section is used to take the first result, the second result and the third result as the results.
[0112] In an optional manner, the vehicle-based obstacle warning device further includes:
[0113] The initial alarm range data acquisition module is used to acquire the initial alarm range data.
[0114] The optional alarm range data acquisition module is used to acquire the optional alarm range data, and the optional alarm range data is located within the initial alarm range data.
[0115] The preset alarm range data acquisition module is used to determine the preset alarm range data according to the optional alarm range data.
[0116] In an optional manner, determining the preset alarm range data according to the optional alarm range data further includes:
[0117] The preset alarm range data acquisition unit is used to determine the preset alarm range data according to the shape parameters of the vehicle, the height of the origin detector and the optional alarm range data.
[0118] In an optional manner, the preset alarm range data includes first alarm range data in a first direction, second alarm range data in a second direction, and third alarm range data in a third direction, the first direction is the length direction of the vehicle, and the second direction is the width direction of the vehicle; the shape parameters of the vehicle include the length, width and height of the vehicle; the preset alarm range data acquisition unit further includes:
[0119] The first alarm range data acquisition module is used to determine the first alarm range data according to the length of the vehicle and the optional alarm range data in the first direction.
[0120] The second warning range data acquisition module is used to determine the second warning range data according to the optional warning range data in the width and second direction of the vehicle.
[0121] The third alarm range data acquisition module is used to determine the third alarm range data according to the height of the vehicle, the height of the origin detector and the optional alarm range data in the third direction.
[0122] In this embodiment, by setting an origin detector, the first position data detected by the detector in the vehicle is converted into a coordinate system with the origin detector as the origin, thereby obtaining the second position data with the origin detector as the origin. By comparing the second position data with the preset alarm range data under the origin detector, an obstacle alarm can be accurately performed.
[0123] On the other hand, the preset alarm range data can be adjusted according to the optional alarm range data, and the optional alarm range data can be obtained by user setting. In this way, the vehicle-based obstacle warning device can be suitable for different users, thereby improving user satisfaction.
[0124] It should be noted that the vehicle-based obstacle warning device provided in the above embodiment and the vehicle-based obstacle warning method provided in the above embodiment belong to the same concept, and 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.
[0125] Another aspect of the present application also provides an electronic device, including: a controller; a memory for storing one or more programs, when the one or more programs are executed by the controller, to execute the above-mentioned vehicle-based obstacle warning method.
[0126] See also Fig.10 , Fig.10 1 is a schematic diagram of the structure of a computer system of an electronic device shown in an exemplary embodiment of the present application, which shows a schematic diagram of the structure of a computer system of an electronic device suitable for implementing an embodiment of the present application.
[0127] It should be noted that Fig.10 The computer system 1000 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0128] like Fig.10 As shown, the computer system 1000 includes a central processing unit (CPU) 1001, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1002 or the program loaded from the storage part 1008 to the random access memory (RAM) 1003, such as executing the method in the above embodiment. In the RAM 1003, various programs and data required for system operation are also stored. The CPU 1001, the ROM 1002 and the RAM 1003 are connected to each other through the bus 1004. The input / output (I / O) interface 1005 is also connected to the bus 1004.
[0129] The following components are connected to the I / O interface 1005: an input section 1006 including a keyboard, a mouse, etc.; an output section 1007 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1008 including a hard disk, etc.; and a communication section 1009 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to the I / O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1010 as needed so that a computer program read therefrom is installed into the storage section 1008 as needed.
[0130] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program 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 section 1009, and / or installed from a removable medium 1011. When the computer program is executed by a central processing unit (CPU) 1001, various functions defined in the system of the present application are executed.
[0131] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can 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), a 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 the present application, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium can include a data signal propagated in a baseband or as a part of a carrier wave, wherein a computer-readable computer program is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0132] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, 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 box can also occur in a different order than the order marked in the accompanying drawings. For example, two 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 box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart 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.
[0133] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0134] 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, the information processing method as described above is implemented. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.
[0135] Another aspect of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the information processing method provided in each of the above embodiments.
[0136] According to one aspect of an embodiment of the present application, a computer system is also provided, including a central processing unit (CPU), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) or a program loaded from a storage portion into a random access memory (RAM), such as executing the method in the above embodiment. In RAM, various programs and data required for system operation are also stored. CPU, ROM and RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.
[0137] The following components are connected to the I / O interface: an input part including a keyboard, a mouse, etc.; an output part including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage part including a hard disk, etc.; and a communication part including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication part performs communication processing via a network such as the Internet. A drive is also connected to the I / O interface as needed. Removable media, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., are installed on the drive as needed so that the computer program read therefrom is installed into the storage part as needed.
[0138] The above content is only a preferred exemplary embodiment of the present application and is not intended to limit the implementation scheme of the present application. A person skilled in the art can easily make corresponding changes or modifications based on the main concept and spirit of the present application. Therefore, the scope of protection of the present application shall be based on the scope of protection required by the claims.
Claims
1. A vehicle-based obstacle warning method, characterized in that: The obstacle alarm method comprises: Acquire first position data of an obstacle detected by the target detector, wherein the first position data is polar coordinate data with the target detector as an origin; Converting the first position data into second position data with an origin detector as an origin, wherein the origin detector is any detector preset in the vehicle; A comparison is performed between the second position data and the preset alarm range data, and an alarm is issued according to a result of the comparison. Different origin detectors correspond to different preset alarm range data.
2. The obstacle alarm method according to claim 1, characterized in that: The converting the first position data into second position data with the origin detector as the origin further comprises: Converting the first position data into third position data, wherein the third position data is rectangular coordinate data with the target detector as the origin; If the target detector is the origin detector, the third position data is used as the second position data; If the target detector is not the origin detector, the third position data is converted into the second position data.
3. The obstacle alarm method according to claim 1, characterized in that: The preset alarm range data includes corresponding alarm range data in multiple directions, and the second position data includes corresponding parameters in the multiple directions; The step of comparing the second position data with preset alarm range data and issuing an alarm according to a comparison result includes: Compare the alarm range data corresponding to each direction in the multiple directions with the parameter to obtain the result; If the result indicates that the parameter in at least one direction of the multiple directions is within the corresponding alarm range, an alarm is issued.
4. The obstacle alarm method according to claim 3, characterized in that: The corresponding alarm range data in the multiple directions include first alarm range data in the first direction, second alarm range data in the second direction, and third alarm range data in the third direction, and the first direction, the second direction, and the third direction are orthogonal to each other; The second position data includes a first parameter in the first direction, a second parameter in the second direction, and a third parameter in the third direction; The comparing the alarm range data corresponding to each direction in the multiple directions with the position data to obtain the result includes: Compare the first parameter with the first alarm range data to obtain a first result; Comparing the second parameter with the second alarm range data to obtain a second result; Comparing the third parameter with the third alarm range data to obtain a third result; The first result, the second result and the third result are taken as the results.
5. The obstacle warning method according to any one of claims 1 to 4, characterized in that: Before comparing the second position data with the preset alarm range data and issuing an alarm according to the comparison result, the obstacle alarm method further includes: Get initial alarm range data; Acquire optional alarm range data, wherein the optional alarm range data is within the initial alarm range data; The preset alarm range data is determined according to the optional alarm range data.
6. The obstacle warning method according to claim 5, characterized in that: The step of determining the preset alarm range data according to the optional alarm range data further comprises: The preset alarm range data is determined according to the shape parameters of the vehicle, the height of the origin detector and the optional alarm range data.
7. The obstacle alarm method according to claim 6, characterized in that: The preset alarm range data includes first alarm range data in a first direction, second alarm range data in a second direction, and third alarm range data in a third direction, the first direction is the length direction of the vehicle, and the second direction is the width direction of the vehicle; The shape parameters of the vehicle include the length, width and height of the vehicle; The step of determining the preset alarm range data according to the shape parameters of the vehicle, the height of the origin detector and the optional alarm range data further comprises: Determine the first warning range data according to the length of the vehicle and the optional warning range data in the first direction; Determine the second warning range data according to the width of the vehicle and the optional warning range data in the second direction; The third warning range data is determined according to the height of the vehicle, the height of the origin detector, and the selectable warning range data in the third direction.
8. A vehicle-based obstacle warning device, characterized in that: The obstacle warning device comprises: A first position data acquisition module, used to acquire first position data of an obstacle detected by the target detector, wherein the first position data is polar coordinate data with the target detector as the origin; A second position data acquisition module, used for converting the first position data into second position data with an origin detector as an origin, wherein the origin detector is any detector preset in the vehicle; The alarm module is used to compare the second position data with the preset alarm range data and to issue an alarm according to the comparison result. Different origin detectors correspond to different preset alarm range data.
9. An electronic device, characterized in that: include: Controller; A memory for storing one or more programs, which, when executed by the controller, enables the controller to implement the obstacle warning method described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: Computer-readable instructions are stored thereon, and when the computer-readable instructions are executed by a processor of a computer, the computer is caused to execute the obstacle warning method described in any one of claims 1 to 7.
