Boundary detection method, device, computer equipment, storage medium and sensor
Through automated boundary detection processing and multi-frame comprehensive quantification technology, the problem of traditional boundary detection methods requiring manual participation is solved, efficient and accurate boundary detection is achieved, the detection process is simplified and the cost is reduced.
Patent Information
- Application Number
- CN202110490404.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-06
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-05-06
AI Technical Summary
Traditional boundary detection methods cannot achieve automatic detection and require manual participation, resulting in high labor costs and cumbersome detection processes, which cannot meet users' accuracy needs.
By obtaining the original target points of consecutive frames of the area to be detected, boundary detection processing is performed, including constructing an initial boundary model, multiple boundary searches, determining boundary parameters and effective boundary models, combined with multi-frame comprehensive quantitative detection, to automatically determine the target boundary detection results.
It realizes automatic detection of indoor boundaries without manual movement of data, simplifies the detection process, improves the efficiency and accuracy of boundary detection, and reduces labor costs.
Smart Images

Figure CN113344954B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of target detection, and in particular to a boundary detection method, device, computer equipment, storage medium and sensor. Background Art
[0002] With the development of society, target detection within a specific area has been widely used. In order to improve the accuracy of target detection, it is generally necessary to determine the boundary of the specific area first.
[0003] However, the detection accuracy of traditional boundary detection methods cannot meet the current needs of users, and it is impossible to achieve automatic boundary detection. For example, when installing the sensor, human intervention is required to determine the boundary, and when changing the sensor detection direction or changing the installation position, specialized technicians are required to re-engage, which makes the labor cost too high and the detection process more cumbersome. Summary of the invention
[0004] Based on this, it is necessary to provide a boundary detection method, device, computer equipment, storage medium and sensor to address the above technical problems.
[0005] In a first aspect, a boundary detection method is provided, the method comprising:
[0006] Obtain at least two consecutive frames of original target points in the area to be detected;
[0007] Performing boundary detection processing on the original target points of each frame to obtain boundary detection results of each frame of the area to be detected; and
[0008] Perform multi-frame comprehensive quantitative detection on the boundary detection results of the preset number of frames to determine the target boundary detection results of the area to be detected.
[0009] In one embodiment, the above-mentioned boundary detection processing is performed on each frame of the original target point to obtain the boundary detection results of each frame of the area to be detected, including:
[0010] On the plane of the coordinate system where the sensor is located, an initial boundary model of each boundary of the area to be detected is obtained based on the original target point of the current frame;
[0011] For the initial boundary model of each boundary, multiple boundary searches are performed within a preset angle range and a preset distance range to determine boundary parameters of each boundary of the area to be detected;
[0012] Determine the effective boundary model of the area to be detected according to the boundary parameters of each boundary and the relationship between adjacent boundaries; and
[0013] Perform boundary search according to the angle of the effective boundary model to obtain the boundary detection result corresponding to the original target point of the current frame;
[0014] The boundary detection result includes boundary information and / or boundary status of each boundary of the area to be detected; and / or the boundary parameters include angle, distance and / or confidence.
[0015] In one embodiment, for the initial boundary model of each boundary, multiple boundary searches are performed within a preset angle range and a preset distance range to determine boundary parameters of each boundary of the area to be detected, including:
[0016] For each boundary, based on the initial boundary model, perform boundary searches M times in a preset angle range with a preset angle step, and perform boundary searches N times in a preset distance range with a preset distance step, to obtain M*N candidate boundary models corresponding to each boundary;
[0017] Calculate the distance from each original target point in the current frame to each candidate boundary model of each boundary; and
[0018] Determine boundary parameters for each boundary based on the distance;
[0019] Wherein, M and N are positive integers.
[0020] In one embodiment, the step of determining the boundary parameters of each boundary according to the distance includes:
[0021] For the candidate boundary model of the i-th boundary, count the number of original target points whose distance is less than the preset distance threshold;
[0022] Determine the boundary parameters of the i-th boundary according to the candidate boundary model with the largest number of original target points;
[0023] Wherein, i is a positive integer.
[0024] In one embodiment, the above-mentioned boundary search is performed according to the angle of the effective boundary model to obtain the boundary detection result corresponding to the original target point of the current frame, including:
[0025] If there is a valid boundary model in the area to be detected, the adjacent boundary model of the valid model is searched according to the angle of the valid boundary model, and the remaining boundary models are searched according to the angles of the valid boundary model and the adjacent boundary model, and the boundary information corresponding to the valid boundary model, the adjacent boundary model and the remaining boundary model is output, and the boundary state is determined to be valid;
[0026] If there is no valid boundary model, the boundary information corresponding to the default boundary model is output, and the boundary state is determined to be invalid.
[0027] In one embodiment, if the area to be detected has an even number of boundary models, the boundary search is performed according to the angle of the effective boundary model to obtain the boundary detection result corresponding to the original target point of the current frame, including:
[0028] If there is an effective boundary model, then search for the adjacent boundary model of the effective model according to the angle of the effective boundary model, and search for the remaining boundary models according to the angles of the effective boundary model and the adjacent boundary model, output the boundary information corresponding to the effective boundary model, the adjacent boundary model and the remaining boundary model, and determine that the boundary state is effective;
[0029] If there are an odd number of effective boundary models that are adjacent to each other, search for the remaining boundary models according to the angle of the effective boundary model, output the boundary information corresponding to the effective boundary model and the remaining boundary models, and determine that the boundary state is valid;
[0030] If no valid frontier model exists, the frontier state is determined to be invalid.
[0031] In one embodiment, the method further includes:
[0032] If the boundary status is valid, the validity of the boundary information is judged according to the boundary information, the adjacent boundary relationship and the opposite edge distance. If the boundary information is valid, the boundary information is output and the boundary status is determined to be valid; if the boundary information is invalid, the boundary information corresponding to the default boundary model is output and the boundary status is determined to be invalid;
[0033] If the boundary state is invalid, the boundary information corresponding to the default boundary model is output to determine that the boundary state is invalid.
[0034] In one embodiment, the above-mentioned multi-frame comprehensive quantitative detection is performed on the boundary detection results of the preset number of frames to determine the target boundary detection result of the area to be detected, including:
[0035] The number of frames whose boundary status is valid is obtained. If the number of frames is greater than a preset number threshold, for each boundary, the boundary information with the highest confidence is selected from the boundary information of each frame as the target boundary information; wherein the number threshold is determined according to the decision factor and the preset number of frames;
[0036] The validity of the target boundary information is judged according to the target boundary information, the adjacent boundary relationship and the opposite edge distance. If the target boundary information is valid, the target boundary information is output and the boundary state is determined to be valid.
[0037] If the target boundary information is invalid, the target boundary information corresponding to the default boundary model is output to determine that the boundary state is invalid.
[0038] In one embodiment, after acquiring multiple frames of original target points in the area to be detected, the method further includes:
[0039] The original target points are subjected to data preprocessing to remove the clutter in the original target points; the clutter includes at least one of clutter in the radar blind area in the area to be detected, motion points, left and right noise points, and noise points in a preset area.
[0040] In a second aspect, a boundary detection device is provided, the device comprising:
[0041] An acquisition module, used to acquire at least two consecutive frames of original target points in the area to be detected;
[0042] The boundary detection module is used to perform boundary detection processing on the original target points of each frame to obtain the boundary detection result of each frame of the area to be detected; the boundary detection result includes the boundary information and boundary status of each boundary of the area to be detected;
[0043] The comprehensive quantization module is used to perform multi-frame comprehensive quantization detection on the boundary detection results of a preset number of frames to determine the target boundary detection results of the area to be detected.
[0044] In a third aspect, a target detection method is provided, which is used for performing target detection by a sensor disposed in a to-be-detected area, wherein the to-be-detected area has at least one physical boundary, and the method comprises:
[0045] Perform noise reduction on the original target points acquired by the sensor to obtain valid target points;
[0046] Modeling is performed based on valid target points to obtain target boundary detection results corresponding to physical boundaries; and
[0047] The boundary of the effective monitoring area in the area to be detected is determined based on the target boundary detection result and the parameters of the sensor.
[0048] In one embodiment, for a preset two-dimensional plane in the area to be detected; performing noise reduction processing on the original target points acquired by the sensor to obtain valid target points includes:
[0049] performing signal processing on the echo signal to obtain an original target point; and
[0050] After projecting each original target point onto a preset two-dimensional plane, noise reduction processing is continued to obtain a valid target point located on the preset two-dimensional plane.
[0051] In one embodiment, the noise reduction process includes blind spot noise filtering, motion point filtering, left and right noise filtering and / or close front noise filtering.
[0052] In one of the embodiments, the valid target points located on the preset two-dimensional plane include at least one frame of valid target points;
[0053] Modeling is performed based on valid target points to obtain target boundary detection results corresponding to physical boundaries, including a single-frame boundary detection step;
[0054] The single frame boundary detection steps include:
[0055] For any valid target point in a frame, obtain the target boundary detection result of a single frame based on the preset boundary model;
[0056] The boundary of the effective monitoring area in the area to be detected is determined based on the target boundary detection result of a single frame and the parameters of the sensor.
[0057] In one of the embodiments, modeling is performed based on valid target points to obtain target boundary detection results corresponding to physical boundaries, and further includes a multi-frame comprehensive evaluation step;
[0058] The multi-frame comprehensive evaluation steps include:
[0059] Based on the target boundary detection results of a single frame with a preset number of frames, each boundary with the highest confidence is evaluated to obtain a comprehensive target boundary detection result;
[0060] The boundary of the effective monitoring area in the area to be detected is determined based on the comprehensive target boundary detection result and the parameters of the sensor.
[0061] In one of the embodiments, when acquiring effective target points for a preset two-dimensional plane in the area to be detected, the sensor transmits a narrow beam test signal in a dimension perpendicular to the preset two-dimensional plane.
[0062] In a fourth aspect, a method for target detection is provided, the method comprising:
[0063] Target detection is performed based on the boundary detection result obtained by the boundary detection method provided in the first aspect embodiment, or the boundary of the effective monitoring area obtained by the boundary detection method provided in the third aspect embodiment.
[0064] In a fifth aspect, a computer device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements any of the methods described in the first and third aspects when executing the computer program.
[0065] In a sixth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method described in any one of the first and third aspects above is implemented.
[0066] In a seventh aspect, a sensor is provided, the sensor being fixedly disposed in an area to be detected, the sensor comprising:
[0067] At least three transmitting antennas that are not co-linear;
[0068] A control unit, used to control at least three transmitting antennas to transmit narrow beam test signals in preset dimensions;
[0069] A processing unit, used for processing the test echo signal to obtain boundary information on a preset two-dimensional plane;
[0070] Among them, the preset dimension is perpendicular to the two-dimensional plane.
[0071] In one of the embodiments, the processing unit is further used to process the test echo signal according to any one of the methods of the first aspect and the third aspect to obtain boundary information on a preset two-dimensional plane.
[0072] In one embodiment, the control unit is further used to control at least three transmitting antennas to transmit detection signals; and
[0073] The processing unit is further used to process the detection echo signal based on the boundary information so as to perform target detection on a preset two-dimensional plane in the area to be detected.
[0074] In one embodiment, the sensor is a millimeter wave radar.
[0075] In an eighth aspect, a device is provided, comprising:
[0076] A device body; and a sensor provided by the seventh aspect embodiment described above and arranged on the device body; wherein the sensor is used for target detection and / or communication.
[0077] In the above-mentioned boundary detection method, device, computer equipment, storage medium and sensor, the server obtains at least two consecutive frames of original target points in the area to be detected, performs boundary detection processing on each frame of the original target points, obtains the boundary information and boundary state of each boundary of the area to be detected in each frame of the area to be detected, and uses it as the boundary detection result of the current frame, thereby performing multi-frame comprehensive quantitative detection on the boundary detection results of a preset number of frames to determine the target boundary detection result of the area to be detected. In this method, a single-frame detection algorithm module and a multi-frame comprehensive quantization algorithm module for boundary detection are integrated in the server, and boundary detection processing is performed based on the original target points of the area to be detected that are automatically scanned and collected by the radar. There is no need to obtain the corresponding indoor boundary detection data by obtaining the movement data of people, which simplifies the boundary detection process and improves the efficiency of boundary detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0078] Figure 1 is a schematic flow chart of a boundary detection method in one embodiment;
[0079] Figure 2 is a schematic flow chart of a boundary detection method in one embodiment;
[0080] Figure 3 is a schematic flow chart of a boundary detection method in one embodiment;
[0081] Figure 4 A diagram showing an application environment of a boundary detection method in an embodiment;
[0082] Figure 5 A lateral installation plan view of a radar for a boundary detection method in one embodiment;
[0083] Figure 6 is a schematic flow chart of a boundary detection method in one embodiment;
[0084] Figure 7 is a schematic flow chart of a boundary detection method in one embodiment;
[0085] Figure 8 is a schematic flow chart of a boundary detection method in one embodiment;
[0086] Fig. 9 is a schematic flow chart of a boundary detection method in one embodiment;
[0087] Fig.10 is a schematic flow chart of a boundary detection method in one embodiment;
[0088] Fig.11 is a flow chart of a boundary detection method in another embodiment;
[0089] Fig.12 is a structural block diagram of a boundary detection device in one embodiment;
[0090] Fig.13 is a structural block diagram of a boundary detection device in one embodiment;
[0091] Fig.14 is a structural block diagram of a boundary detection device in one embodiment;
[0092] Fig.15 is a structural block diagram of a boundary detection device in one embodiment;
[0093] Fig.16 is a structural block diagram of a boundary detection device in one embodiment;
[0094] Fig.17 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0095] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0096] When using sensors to detect targets in a specific area (such as a room, parking lot (indoor or outdoor), etc.), after the sensor is fixedly installed, the actual field of view boundary of the sensor is generally determined by the field of view of the sensor and the physical boundary in the above-mentioned specific area. Therefore, before the sensor works normally, the actual field of view boundary is determined first to reduce or even eliminate false targets caused by multipath effects, so as to achieve sophisticated target detection or tracking operations in the actual field of view area.
[0097] For example, when the sensor is used indoors for operations such as target detection and tracking, it is necessary to limit the field of view of the sensor itself and the physical boundaries of the area covered by the field of view. Therefore, it is necessary to first obtain the actual field of view boundaries, such as the boundaries, areas, corners, shapes and other information of the room in the sensor's field of view.
[0098] In actual applications, since users have certain personalized requirements for the installation method of sensors or devices equipped with sensors, after the sensors or devices equipped with sensors are installed and fixed, it is generally necessary to move the test target along the physical boundary of the above-mentioned specific area (or target area) (for example, the test personnel or test object moves along the wall), and determine the boundary of the actual field of view area on the horizontal plane by detecting the movement trajectory of the test target, which makes the boundary detection process more complicated. At the same time, the human body is a very large target point relative to the room, so the detection accuracy is also very low.
[0099] After understanding the above technical problems, the inventors of the present application creatively proposed a target detection method after research and analysis, which can be used for target detection by a sensor set in a to-be-detected area. The to-be-detected area may have at least one physical boundary, such as Figure 1 As shown, the method may include the following steps:
[0100] Step S11: after a preset trigger condition is met, the sensor transmits a boundary test signal and receives a corresponding test echo signal.
[0101] Specifically, the above-mentioned preset trigger conditions may be after the sensor is initially fixed and installed, after the sensor is replaced and fixed, at a predetermined time interval, at a predetermined time, etc., and may be set according to actual use needs. After the above-mentioned preset trigger conditions are met, the sensor automatically transmits the above-mentioned test signal and receives the corresponding test echo signal, and then performs operations such as determining or optimizing boundaries and related data information.
[0102] Optionally, the above-mentioned test signal may be a newly added signal (i.e., different from the subsequent target test signal), or may be a signal that is the same as the emission signal of the sensor for target detection, such as a specific time period after the preset trigger condition is met as the boundary detection time, that is, within the boundary detection time period, the sensor's sending and receiving signals and related signal processing and data processing are all for the purpose of obtaining the effective field of view in the environment where the current sensor is located. The effective field of view may be an area defined by the sensor's signal radiation parameters and / or the physical boundaries in the area to be detected, or may be an area defined by the above-mentioned sensor's signal radiation parameters and / or the physical boundaries in the area to be detected under preset parameter conditions.
[0103] Step S12: performing signal processing based on the above echo signal to obtain original target data.
[0104] Specifically, the above-mentioned signal processing includes but is not limited to processing operations such as various analog signal processing (such as demodulation, filtering, mixing, sampling, AD conversion, etc.) for echo signals, digital signal processing (such as Fourier transform (FFT), constant false alarm rate detection (CFAR), signal direction of arrival (DOA), etc.), etc., to obtain original target data containing information such as target speed, distance, direction angle (such as azimuth and pitch angle), that is, the original target data may contain multiple target points, such as moving targets, stationary targets, and false targets caused by multipath effects, etc.
[0105] Step S13: performing noise reduction processing on the original target point to obtain a valid target point.
[0106] Specifically, since the original target data contains target data that is noise for boundary testing, the target data that is within the sensor blind spot, outside the environmental restriction range, and / or in motion can be removed as noise points based on the requirements of the boundary test, environmental characteristics, sensor performance limitations, etc. For example, when the sensor is used indoors, the target points that are within the sensor blind spot, in motion, and close to the front can be treated as noise points, and the range of the above noise points can be set based on actual needs.
[0107] It should be noted that, for environmental restrictions, it can be understood that the application scenario of the sensor is known in advance. For example, if the application scenario is in the bedroom of an ordinary resident, the distance in the original target data can be limited to the length of the diagonal straight line of the bedroom, for example, 10 meters. That is, the target distance greater than 10 meters can be considered as a false target caused by multipath and removed. That is, based on some information that has been determined, certain restrictions can be set in advance before boundary detection to further improve the efficiency and accuracy of boundary detection.
[0108] At the same time, the above-mentioned moving state can be understood as a target point whose speed is not zero, or whose speed is greater than a preset value (such as a sensor target detection speed error value, or other preset values, etc.) as a moving target point. The close front target point can be understood as a boundary target that is impossible to exist within a very close range of the sensor; for example, when the sensor is installed in the middle of the top of the living room, the boundary of the living room is generally greater than 1 meter from the sensor, so it can be considered that the close target points with a distance of less than 1 meter from the sensor can be filtered out as noise points.
[0109] Step S14: obtaining a target boundary detection result corresponding to the physical boundary based on the above-mentioned valid target points.
[0110] Specifically, the above target detection result can be obtained by performing point cloud imaging or modeling based on the above valid target points. The target detection result includes but is not limited to information such as the position, length, shape, and angle between boundaries of the boundary.
[0111] For example, based on the sensors used indoors, since their boundaries are generally straight lines, modeling can be performed based on a preset straight line model (multiple models can also be set in advance, and the retrieval conditions corresponding to each model can be set. Once it is detected that the current environment meets one of the retrieval conditions, the corresponding model can be called for processing), thereby obtaining the above-mentioned target boundary detection results.
[0112] Step S15: Determine the boundary of the effective detection area in the area to be detected based on the above target detection results and the parameters of the sensor.
[0113] Specifically, because the effective detection area is determined by the physical boundary (or preset boundary) and the detection field of view of the sensor itself, the three-dimensional framework boundary of the effective detection area can be automatically obtained based on the above-mentioned target detection results and the parameters of the sensor, thereby determining a three-dimensional effective detection area range.
[0114] When the sensor performs target detection normally, it can achieve accurate target detection based on the above-determined three-dimensional effective detection area range, or the above-mentioned boundary detection results, so that when the user uses the sensor or a device equipped with a sensor, the entire process from automatic detection and acquisition of the effective detection area range of the current environment at initial power-on to accurate target detection is automated. When the sensor is relocated or used for a long time, it can automatically reconfirm and continuously optimize and update the effective detection area range limited by the current environment and position to ensure the accuracy of target detection.
[0115] It should be noted that when the sensor detects a target, the target point in motion as a noise point cannot be processed as a noise point, and it is included in the range of the real target point. That is, in the boundary detection process, the steps before and after obtaining the original target point can be similar to or even completely the same as the steps of obtaining the target data after DOA processing (CFAR processing) in the target detection process. The difference between boundary detection and target detection can be that after obtaining the original target point, the target detection is to reduce the noise of the original target point (that is, remove the target points outside the effective detection area or outside the boundary) with the above-mentioned effective detection area range (or the above-mentioned boundary detection result) to obtain the real detection target point.
[0116] It should be noted that the above-mentioned boundary detection step can be performed based on the original target data obtained from one frame of test echo signal (i.e. one frame of original target data), or it can be performed based on the original target data obtained from multiple frames (at least two frames) of test echo signals.
[0117] At the same time, when the above-mentioned boundary detection operation is performed on the original target data obtained from one frame of test echo signal, the subsequent target detection can be performed based on the boundary data obtained at this time as the final result, and it can be considered that only one frame of boundary test signal is required in this method; and when the received test echo signal has at least two frames, the boundaries obtained from each frame of echo signal can be comprehensively analyzed and processed to obtain the optimized final result, and subsequent target detection operations can be performed based on the optimized final result.
[0118] In an optional embodiment, because the physical space of some application scenarios has certain particularities, it is not necessary to obtain the three-dimensional framework boundary of the effective detection area, that is, it is sufficient to obtain the boundary of the two-dimensional plane of part of the effective monitoring area. At this time, the above method can be improved for different application scenarios to improve the efficiency and accuracy of boundary detection. At the same time, when determining the scope of the above three-dimensional effective detection area, the boundaries of each two-dimensional plane can also be directly or indirectly determined based on the following method.
[0119] The following is a detailed explanation using the application of the sensor in a home living room as an example. Since a home room is generally a regular cube (such as a cube or a cuboid, etc.), and generally only living targets on the ground plane of the room need to be detected, it is sufficient to detect the boundary of the ground plane (i.e., the preset two-dimensional plane).
[0120] A boundary detection method for indoor detection application scenarios, such as Figure 2 As shown, the method may include the following steps:
[0121] Step S21: After the sensor is installed and fixed in a room, signal processing may be performed on the echo signal received by the sensor to obtain the original target point.
[0122] For details, please refer to the above steps S11-12, which will not be described in detail here.
[0123] Step S22, after projecting each of the original target points onto the ground plane of the above-mentioned room, continue to perform noise reduction processing operations such as blind spot noise filtering, motion point filtering, left and right noise filtering and / or close-range front noise filtering to obtain a valid target point located on the ground plane.
[0124] Step S23, performing a single-frame boundary detection step, that is, for a valid target point in any frame, a single-frame target boundary detection result can be obtained based on a preset boundary model.
[0125] Specifically, since the ground plane of a living room is generally a square, the above-mentioned preset boundary model can be set as a straight line model, and the boundary information of each side of the ground plane can be determined subsequently by methods such as step search.
[0126] In an optional embodiment, in order to improve the accuracy of the sensor's boundary detection for the ground plane, the sensor must have the function of pitch angle detection, and can also use beam synthesis technology to transmit a narrow beam signal in the pitch dimension (i.e., the dimension perpendicular to the ground plane) to further improve the accuracy of boundary detection.
[0127] In another optional embodiment, in order to further improve the accuracy of boundary detection, multi-frame comprehensive boundary detection can be performed on the basis of the above-mentioned boundary detection method, that is, the method can also include a multi-frame comprehensive evaluation step, namely:
[0128] For the target boundary detection results of a single frame with a preset number of frames, each boundary with the highest confidence is evaluated to obtain a comprehensive target boundary detection result; wherein, based on the comprehensive target boundary detection result, the boundary of the effective monitoring area in the area to be detected can be determined.
[0129] For example, a radar (such as a millimeter wave radar) is used for indoor target detection. The radar has at least three transmitting antennas that are not in the same straight line (ie, not collinear), such as Figure 3 As shown, the boundary detection method may include:
[0130] Step S31, the radar is powered on, all transmissions of the radar transmitter are turned on simultaneously, and transmit beam synthesis is performed in the spatial pitch dimension.
[0131] Step S32: The radar receives the indoor target signal (i.e., the echo signal) and performs signal processing to obtain the original detection point.
[0132] Among them, the signal processing may include distance dimension FFT, speed dimension FFT, incoherent accumulation, CFAR (constant false alarm detection), angle measurement (azimuth) and other processing steps to obtain multiple original target point (i.e. target point) data, and the data of each original point may contain the target's distance, speed, azimuth, SNR (signal-to-noise ratio) and other information.
[0133] Step S33: perform “single frame boundary detection” processing on the single frame original detection points (ie, original target points).
[0134] Step S34: Save the indoor boundary information obtained based on the single frame data.
[0135] Step S35: If the number of frames processed by the "single frame boundary detection" reaches N frames, enter the "multi-frame comprehensive evaluation" step, otherwise continue with the "single frame boundary detection" process.
[0136] Step S36: Based on the above-mentioned "multi-frame comprehensive evaluation" step, output the multi-frame comprehensive evaluation results of indoor boundary detection, such as room area, boundary model, room corner coordinate points and other boundary information.
[0137] The following is a detailed description of the millimeter-wave radar used indoors as an example, but it should be understood that the solution recorded in the embodiment of the present application can also be applied to various specific areas outdoors. At the same time, there is no special limitation on the installation method of the radar, such as forward installation, top installation, side installation and other installation methods.
[0138] In the field of indoor applications of millimeter-wave radar, indoor positioning technology has gradually developed. In order to improve the accuracy of indoor detection and positioning, it is generally necessary to first accurately detect the indoor boundaries, such as the detection of room boundary position, area and other parameters.
[0139] At present, the common indoor boundary detection method is usually to measure by combining technicians with radar. Specifically, the technician moves along the indoor boundary, and the radar tracks and detects the technician, obtains the technician's movement data as the indoor boundary detection data, and then obtains the room boundary value and area size based on the detection data. When the radar changes its position, the technician needs to move along the indoor boundary again, and re-obtain the technician's movement data as the indoor boundary detection data for indoor boundary measurement. That is, the whole process requires manual participation, the labor cost is high, and the detection process is relatively cumbersome.
[0140] The indoor boundary detection method provided in this application can be applied to Figure 4 In the application environment shown. Figure 4As shown, the server 101 communicates with the radar 102 through the network, wherein the server 101 may be an independent server, or a server cluster composed of multiple servers. The radar 102 may be a millimeter wave radar, for example, a 77GHz millimeter wave radar with a 4GHz bandwidth design. It should be noted that the radar 102 has a transceiver antenna for measuring angles and distances. Optionally, the radar also has an antenna for transmitting beam synthesis to form an electromagnetic wave signal with a pitch narrow beam. When performing indoor boundary detection, the radar can be placed in a corner of the area to be detected, and its installation direction is lateral installation; it can also be placed in a certain boundary of the area to be detected, and its installation direction is forward installation; the radar can also be placed above the area to be detected, and its installation method is not limited. In addition, the indoor boundary detection method provided in the present application is applicable to the boundary detection of any polygonal area. This embodiment takes a quadrilateral detection area and a radar lateral installation as an example to explain the indoor boundary detection method. As Figure 5 As shown, Figure 5 This is a plan view of the radar installed laterally in the quadrilateral detection area.
[0141] In the embodiment of the present application, the server 101 and the radar 102 can be set on one device at the same time, for example, they are integrated into one smart device (such as air conditioner, lamp, electric fan, sweeping robot, electric heater, etc.), and can even be integrated on the same PCB board as an integrated device to facilitate installation on electronic equipment to realize intelligent operation of electronic equipment. In another optional embodiment, the above-mentioned server 101 can be integrated with the radar 102 into a SoC chip, such as an AiP (Antenna-in-Package) chip or an AoC (Antenna-on-Chip) chip.
[0142] The following will explain in detail the technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems through embodiments and in combination with the accompanying drawings. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. It should be noted that the present application Figure 6-Figure 11 The boundary detection method provided in the embodiment is executed by the server 101 or a boundary detection device, which can be part or all of the server 101 through software, hardware or a combination of software and hardware. In the following method embodiments, the execution subject is taken as the server 101 for example.
[0143] In one embodiment, Figure 6As shown, a boundary detection method is provided, which involves a process in which a server performs boundary detection processing on each frame of original target points in a region to be detected based on multiple frames of original target points acquired in the region to be detected, obtains a boundary detection result of each frame of the region to be detected, and then performs multi-frame comprehensive quantitative detection on the boundary detection results of a preset number of frames to determine the target boundary detection result of the region to be detected, including the following steps:
[0144] S201, obtaining at least two consecutive frames of original target points in the area to be detected.
[0145] The area to be detected may be any polygonal area, for example, the area to be detected may be a triangle, a quadrilateral, a pentagon, a hexagon, an irregular shape, etc.
[0146] In this embodiment, the radar can be placed at any position in the area to be detected. For example, the radar can be placed in a corner of the area to be detected, that is, the radar is installed sideways. The server obtains the original target point of the area to be detected collected by the radar, wherein the radar is collected by transmitting a synthetic beam in the air through three transmitting antennas in the pitch dimension to form an electromagnetic wave signal with a narrow pitch beam, receiving the echo signal reflected by the surrounding targets, and the four receiving antennas in the azimuth dimension of the radar receive the echo signal, and perform signal processing on the echo signal, such as distance dimension, speed dimension, incoherent accumulation, constant false alarm detection, angle measurement (azimuth), etc., to obtain multiple original target point data; optionally, each original point contains information such as the distance, speed, azimuth, etc. of the target, which is not limited in this embodiment.
[0147] S202: Perform boundary detection processing on each frame of original target points to obtain boundary detection results of each frame of the area to be detected.
[0148] Among them, the boundary detection result includes the boundary information and boundary status of each boundary of the area to be detected. The boundary information refers to the area of the area to be detected formed by the boundary, the boundary model corresponding to each boundary, and the inflection point coordinates of the area to be detected formed by each boundary, etc.; the boundary status refers to whether the current boundary is valid.
[0149] In this embodiment, since the radar acquires the original target points of multiple frames, the server can perform boundary detection operations on a single frame in units of frames, that is, perform boundary detection operations on each boundary of the area to be detected according to the original target points of each frame. Optionally, the server can construct an initial boundary model of each boundary of the area to be detected corresponding to the current frame according to the original target points of each frame, and optimize the initial boundary models of each boundary corresponding to the current frame by linear fitting based on the original target points to obtain boundary parameters corresponding to each boundary of the current frame; the server can also search and construct multiple candidate boundary models according to the initial boundary model corresponding to the current frame with a preset angle step and a preset distance step, and finally determine the candidate boundary model corresponding to each boundary of the current frame according to the relationship between the distance of each candidate boundary model and the original target point, and determine the boundary parameters corresponding to each boundary according to the candidate boundary model, which is not limited in this embodiment.
[0150] S203 , performing multi-frame comprehensive quantitative detection on the boundary detection results of a preset number of frames to determine the target boundary detection result of the area to be detected.
[0151] The preset number of frames refers to the number of pre-set frames, which is determined according to the actual situation, and its purpose is to expand the sample size of boundary detection and improve the accuracy of boundary detection results. Multi-frame comprehensive quantitative detection refers to further quantifying the effectiveness of boundary parameters of each boundary corresponding to all frames of the preset number of frames.
[0152] In this embodiment, in order to improve the efficiency of comprehensive quantification of the server, in the process of the server performing effectiveness quantification on the boundary parameters of each boundary corresponding to all frames of a preset number of frames, the server may first perform effectiveness screening based on the boundary detection results of each frame, retain only the effective single-frame boundary detection results, and then perform comprehensive quantification based on the effective single-frame boundary detection results. Among them, comprehensive quantification can be performed on each boundary from the angle between each boundary and the longitudinal axis of the plane, the distance between each boundary and the origin, the angle between each adjacent boundary, and the distance between opposite edges of each opposite edge boundary, and finally determine the target boundary detection result of the current area to be detected, and the target boundary detection result may include the boundary information and boundary status of each boundary of the area to be detected, which is not limited in this embodiment.
[0153] In the above-mentioned boundary detection method, the server obtains at least two consecutive frames of original target points in the area to be detected, performs boundary detection processing on each frame of the original target points, obtains the boundary information and boundary state of the area to be detected in each frame of the area to be detected, and uses it as the boundary detection result of the current frame, thereby performing multi-frame comprehensive quantitative detection on the boundary detection results of the preset number of frames to determine the target boundary detection result of the area to be detected. In this method, a single-frame detection algorithm module and a multi-frame comprehensive quantification algorithm module for boundary detection are integrated in the server, and boundary detection processing is performed based on the original target points of the area to be detected that are automatically scanned and collected by the radar. There is no need to obtain the corresponding indoor boundary detection data by obtaining the movement data of the person, which simplifies the boundary detection process and improves the efficiency of boundary detection.
[0154] When the server performs boundary detection on each frame, the server may perform boundary detection by constructing a linear model of each boundary of the region to be detected. Optionally, in one embodiment, Figure 7 As shown, the above-mentioned boundary detection processing is performed on each frame of the original target point to obtain the boundary detection results of each frame of the area to be detected, including:
[0155] S301 . On the plane of the coordinate system where the sensor is located, an initial boundary model of each boundary of the area to be detected is obtained based on the original target point of the current frame.
[0156] Among them, the initial boundary model can be a linear model corresponding to each boundary constructed according to actual conditions. Taking the boundary of the area to be detected as a straight line as an example, the server can obtain the straight line model of the boundary of the area to be detected in the plane of the rectangular coordinate system where the sensor is located.
[0157] In this embodiment, optionally, the straight line model corresponding to each boundary of the to-be-detected area obtained by the server may be:
[0158] Ax+By+C=0
[0159] Among them, A=cosθ, B=sinθ, C=d, θ is the angle between the straight line and the vertical axis in the rectangular coordinate system; d is the distance between the straight line and the origin in the rectangular coordinate system.
[0160] S302 : For the initial boundary model of each boundary, multiple boundary searches are performed within a preset angle range and a preset distance range to determine boundary parameters of each boundary of the area to be detected.
[0161] Among them, the boundary parameters include angle, distance and confidence. The preset angle range refers to the angle range corresponding to each boundary, and the angle is the angle between each boundary and the longitudinal axis in the plane coordinate system; the preset distance range refers to the distance range corresponding to each boundary, and the distance is the distance between each boundary and the origin in the plane coordinate system; the confidence refers to the number of original target points in each boundary whose distance to the boundary is less than the preset distance threshold; the angle range and distance range are determined according to the actual situation of the area to be detected.
[0162] In this embodiment, for the i-th boundary, optionally, the server searches and obtains values at different angle values and certain distance values within the corresponding angle range to obtain boundary parameters of the i-th boundary corresponding to different angles; similarly, the server searches and obtains values at different distance values and certain angle values within the corresponding distance range to obtain boundary parameters of the i-th boundary corresponding to different distances. Preferably, when searching by distance and angle respectively, the server can set the distance step and the angle step, and perform boundary search based on the distance step and the angle step to obtain boundary parameters corresponding to multiple boundary models of the i-th boundary. Optionally, the server can determine the boundary parameter corresponding to the boundary model with the largest confidence as the boundary parameter of the i-th boundary based on the confidence corresponding to multiple boundary models of the i-th boundary; the server can also determine the boundary parameter corresponding to the boundary model with the smallest confidence as the boundary parameter of the i-th boundary based on the correlation between angle and distance, for example, the product of angle and distance, and the boundary parameter corresponding to the boundary model with the smallest product is determined as the boundary parameter of the i-th boundary, which is not limited in this embodiment.
[0163] S303: Determine a valid boundary model of the area to be detected according to boundary parameters of each boundary and the relationship between adjacent boundaries.
[0164] The adjacent boundary relationship refers to the angle relationship between adjacent boundaries.
[0165] In this embodiment, the server determines the validity of the boundary model corresponding to the boundary information of the current detection area according to the angle, distance, confidence level of each boundary and the angle between adjacent boundaries. Optionally, the server can set the effective range of the angle θ [θ] according to the actual situation of the radar and the detection area. min ,θ max ], effective range of distance d [d min ,d max ], the effective range of confidence c [c min ,c max ], and the adjacent side angle θ k,k+1 Valid range If the boundary parameters corresponding to the kth boundary are all within the corresponding valid ranges set above, the kth boundary is determined to be valid, otherwise, the kth boundary is determined to be invalid; further, if the angle between the kth boundary and the k+1th boundary is within the valid range of the adjacent edge angle set above, the kth boundary is determined to be valid, and if the angle between the kth boundary and the k+1th boundary is not within the adjacent edge angle range set above, the kth boundary is determined to be invalid. It should be noted that if there are at least two sides whose adjacent edge angles are not within the adjacent edge angle range set above, the boundary with the smallest confidence is determined to be an invalid boundary. The above judgment process can be executed according to a preset order or simultaneously, and this embodiment does not limit this.
[0166] S304: Perform boundary search according to the angle of the effective boundary model to obtain a boundary detection result corresponding to the original target point of the current frame.
[0167] The boundary search is similar to the boundary search in step S302 , and new boundary parameters corresponding to each boundary are obtained by adjusting the angle and distance of each boundary.
[0168] In this embodiment, the number of valid boundary models obtained in step S303 is uncertain, and the server can search by matching the search method with higher search efficiency according to the number of valid boundary models. Taking a parallelogram as an example, if the number of valid boundary models determined above is 2, and the boundary corresponding to the valid boundary model is an adjacent boundary, since the parallelogram has the characteristics of parallel opposite sides and equal angles, at this time, the server can directly determine the angle of the boundary model of the other two invalid boundaries according to the angle of the valid boundary model, so that when searching, the server only needs to search according to the distance range and distance step. If the number of valid boundary models determined above is 1, according to the pre-set range of adjacent angles in the parallelogram, the server can directly determine the angle of the adjacent boundary of the boundary corresponding to the current valid boundary model, thereby searching and determining the boundary parameters of the adjacent boundary according to the distance range and distance step. This embodiment does not limit this.
[0169] In this embodiment, the server first performs single-frame boundary detection on the area to be detected, and preliminarily determines the corresponding effective boundary model in each frame, so that the subsequent multi-frame comprehensive quantization sample data are all effective boundary models, further improving the accuracy and precision of the boundary detection results.
[0170] The server performs multiple boundary searches based on angles and distances to obtain boundary parameters of each boundary. In one embodiment, Figure 8 As shown, for the initial boundary model of each boundary, multiple boundary searches are performed within a preset angle range and a preset distance range to determine the boundary parameters of each boundary of the area to be detected, including:
[0171] S401. For each boundary, based on the initial boundary model, perform boundary searches M times in a preset angle range with a preset angle step, and perform boundary searches N times in a preset distance range with a preset distance step, to obtain M*N candidate boundary models corresponding to each boundary.
[0172] In this embodiment, M and N are positive integers, the server presets the angle step to be Δθ, and the preset angle range is [θ min ,θ max ], the distance step is Δd, and the preset distance range is [d min ,d max ], specifically, the server in [θ min ,θ max ], search M times with Δθ as the step size, and in [d min ,d max ], search N times with Δd as the step length, where the mth search angle is θ m =m·Δθ, the distance of the nth search is d m = n·Δd, after searching M*N times, we get M*N candidate boundary models L corresponding to each boundary mn for:
[0173] L mn :A m x+B m y+C n =0
[0174] Among them, A is the independent variable coefficient, A = cosθ; B is the dependent variable coefficient, B = sinθ; C is the straight line L nm The distance to the origin, C=d, where C is a constant.
[0175] S402: Calculate the distance between each original target point in the current frame and each candidate boundary model of each boundary.
[0176] In this embodiment, the server calculates the distance from each original target point in the current frame to the M*N candidate boundary models corresponding to each boundary, and the calculation method is any point-to-line distance calculation method. k To L mn The distance can be expressed as D mnk .
[0177] S403: Determine boundary parameters of each boundary according to the distance.
[0178] In this embodiment, the server can determine, based on the M*N*k distance values corresponding to each boundary in the current frame, the boundary parameters corresponding to the candidate boundary model with the smallest sum of squared distance values in the candidate boundary model of the current boundary as the boundary parameters of the current boundary; optionally, the server can also set a distance threshold, count the number of original target points within the distance threshold range, and thereby determine the candidate boundary model of the current boundary based on the number of original target points, thereby determining the boundary parameters corresponding to the candidate boundary model as the boundary parameters of the current boundary, and this embodiment does not limit this.
[0179] In this embodiment, since the boundary detection is based on a plane rectangular coordinate system, a comprehensive search for candidate boundary models is performed through angle step, angle range, distance step, and distance range. It is not limited to the radar installation angle, and the efficiency and accuracy of the boundary search are improved.
[0180] Optionally, in one embodiment, Fig. 9 As shown, the boundary parameters of each boundary determined according to the distance include:
[0181] S501 . For the candidate boundary model of the i-th boundary, count the number of original target points whose distance is less than a preset distance threshold.
[0182] Among them, the preset distance threshold is determined according to the actual situation of the area to be detected. In the actual boundary detection process, if the distance between the original target point and the current candidate boundary model is too far, it can be considered that the original target point does not belong to the candidate boundary model corresponding to the current boundary. That is, when counting the number of original target points, only the number of points that may belong to the current candidate boundary model needs to be counted.
[0183] In this embodiment, the server may set the distance threshold to T k , for each candidate boundary model of the i-th boundary, calculate the distance D from the original target point to the candidate boundary model mnk , further, the distance D is counted mnk <T k The number of original target points J mn , this embodiment does not limit this.
[0184] S502: Determine boundary parameters of the i-th boundary according to the candidate boundary model with the largest number of original target points.
[0185] In this embodiment, where i is a positive integer, for the i-th boundary, the server can calculate M*N candidate boundary models, each of which corresponds to a number J of original target points. mn , which is equivalent to getting M*N J mn , in M*N J mnIn the above equation, determine its maximum value max(J mn ) is used as the boundary model corresponding to the current boundary, and the boundary parameters corresponding to the boundary model are determined as the boundary parameters of the current boundary. 12 is the maximum value of the number of M*N original target points of the current boundary, then the boundary parameters of the current boundary are determined to be the angle θ1, the distance d2, and the corresponding confidence.
[0186] In this embodiment, the server determines the boundary parameters of the i-th boundary based on the distance and the number of points from the original target point to the candidate boundary model, and selects the candidate boundary model with the largest number of original target points, that is, the candidate boundary model contains the largest number of original target points, further ensuring the accuracy of the boundary parameters of the candidate boundary model.
[0187] In any polygonal scene, for the boundary detection result of each frame, in one embodiment, the boundary search is performed according to the angle of the effective boundary model to obtain the boundary detection result corresponding to the original target point of the current frame, including:
[0188] If there is a valid boundary model in the area to be detected, the adjacent boundary model of the valid model is searched according to the angle of the effective boundary model, and the remaining boundary models are searched according to the angles of the effective boundary model and the adjacent boundary models. The boundary information corresponding to the effective boundary model, the adjacent boundary model and the remaining boundary models is output, and the boundary state is determined to be valid.
[0189] In this embodiment, the server can set the angle relationship between each adjacent boundary in the area to be detected. When the server detects that there is a valid boundary model in the area to be detected in the current frame, the angle between the adjacent boundary and the longitudinal axis in the plane coordinate system can be determined based on the angle relationship between the current valid boundary model and its adjacent boundary, thereby determining the boundary model corresponding to the adjacent boundary. Optionally, the determination method is similar to the above step S302, specifically, searching at different distances based on the determined angle to determine the boundary model corresponding to the adjacent boundary. In the polygonal area to be detected, the adjacent boundaries of the current valid boundary can be determined one by one in this way, thereby completing the search and determination of all boundaries in the area to be detected, thereby outputting the boundary information corresponding to all boundaries, and determining the boundary state of the area to be detected in the current frame as a valid state. This embodiment does not limit this.
[0190] If there is no valid boundary model, the boundary information corresponding to the default boundary model is output, and the boundary state is determined to be invalid.
[0191] In this embodiment, when the server detects that there is no valid boundary model in the area to be detected in the current frame, that is, there are currently no valid boundary parameters for the server to search for reference, the server abandons the search and outputs the boundary information corresponding to the preset default boundary model, and determines the boundary state of the area to be detected in the current frame as an invalid state.
[0192] In a scene with a polygon with an even number of boundaries, in one embodiment, if the area to be detected has an even number of boundary models, the boundary search is performed according to the angle of the effective boundary model to obtain a boundary detection result corresponding to the original target point of the current frame, including:
[0193] If there is an effective boundary model, the adjacent boundary model of the effective model is searched according to the angle of the effective boundary model, and the remaining boundary models are searched according to the angles of the effective boundary model and the adjacent boundary model, and the boundary information corresponding to the effective boundary model, the adjacent boundary model and the remaining boundary models is output, and the boundary state is determined to be valid.
[0194] In this embodiment, the server can also set the angle relationship between each adjacent boundary in the area to be detected. When there is a valid boundary model in the area to be detected, the angle between the adjacent boundary and the vertical axis in the plane coordinate system can be determined according to the angle relationship between the current valid boundary model and its adjacent boundary, thereby determining the boundary model corresponding to the adjacent boundary. Optionally, the determination method is similar to the above step S302, specifically, searching at different distances at a certain adjacent angle to determine the boundary model corresponding to the adjacent boundary. In this way, the server determines the adjacent boundaries of the current valid boundary one by one, thereby completing the search and determination of all boundaries in the area to be detected, thereby outputting the boundary information corresponding to all boundaries, and determining the boundary state of the current area to be detected as a valid state, which is not limited in this embodiment.
[0195] If there are an odd number of two-by-two adjacent effective boundary models, the remaining boundary models are searched according to the angle of the effective boundary model, the boundary information corresponding to the effective boundary model and the remaining boundary models is output, and the boundary state is determined to be valid.
[0196] In this embodiment, optionally, the area to be detected has an even number of boundaries and there are an odd number of pairs of parallel boundaries. When the server determines that in the current frame, there are an odd number of valid boundary models adjacent to each other in the area to be detected, based on the same characteristics of the angles of parallel opposite sides, the server can directly determine the boundary angles corresponding to the other odd boundaries based on the angles, and then search according to the distance step to determine the boundary models of the other odd boundaries. This embodiment does not limit this.
[0197] If no valid frontier model exists, the frontier state is determined to be invalid.
[0198] In this embodiment, when the server detects that there is no valid boundary model in the area to be detected in the current frame, that is, there are currently no valid boundary parameters for the server to search for reference, the server abandons the search and outputs the boundary information corresponding to the preset default boundary model, and determines the boundary state of the area to be detected in the current frame as an invalid state.
[0199] In this embodiment, the server may set different search rules for different polygonal areas to be detected, thereby simplifying the search process and improving the search efficiency, thereby improving the efficiency of boundary detection of the area to be detected.
[0200] To further ensure the validity of each frame boundary information, the server may further perform joint determination on each output boundary information. In one embodiment, the method further includes:
[0201] If the boundary status is valid, the validity of the boundary information is judged according to the boundary information, the adjacent boundary relationship and the opposite edge distance. If the boundary information is valid, the boundary information is output and the boundary status is determined to be valid; if the boundary information is invalid, the boundary information corresponding to the default boundary model is output and the boundary status is determined to be invalid.
[0202] The boundary information includes the angle and distance of each boundary; the adjacent boundary relationship refers to the angle relationship between two adjacent boundaries; and the opposite side distance refers to the distance between non-adjacent boundaries.
[0203] In this embodiment, when the server determines that the boundary state of the area to be detected in the current frame is valid, that is, all boundary information in the area to be detected is valid, the server determines whether the angle, distance, and confidence of all boundaries are within the corresponding preset value range. If the angle, distance, and confidence of all boundaries are within the corresponding preset value range, the boundary information of the area to be detected in the current frame is determined to be valid; the server determines whether the adjacent angles of all boundaries of the current frame are within the corresponding preset angle range according to the value range of each adjacent edge angle in the adjacent boundary relationship. If the adjacent angles of all boundaries are within the corresponding preset angle range, the boundary information of the area to be detected in the current frame is determined to be valid; the server can also determine whether all opposite side distances are within their respective corresponding value ranges according to the opposite side distances of all boundaries in the current frame. If the opposite side distances of all boundaries are within their respective corresponding value ranges, the boundary information of the area to be detected in the current frame is determined to be valid. It should be noted that the server can determine the steps of angle, distance, adjacent angle, opposite side distance, etc. at the same time or in a certain order. It should be noted that, when the server detects that at least one parameter of at least one boundary is not within its corresponding valid value range, it is determined that the boundary information of the to-be-detected area of the current frame is invalid.
[0204] If the boundary state is invalid, the boundary information corresponding to the default boundary model is output to determine that the boundary state is invalid.
[0205] In this embodiment, when the server determines that the boundary state of the area to be detected in the current frame is invalid, the server outputs boundary information corresponding to the initialized default boundary model and determines that the boundary state of the area to be detected in the current frame is invalid.
[0206] In this embodiment, after searching and determining the boundary of the area to be detected in the current frame, the server further determines the validity of the effective boundary information and performs multiple verifications, thereby improving the accuracy of the boundary detection result of the area to be detected in the current frame.
[0207] After performing boundary detection on each frame, the server may also determine the detection result of the boundary of the to-be-detected area through comprehensive quantification of multiple frames. In one embodiment, Fig.10 As shown, the above-mentioned multi-frame comprehensive quantitative detection is performed on the boundary detection results of the preset number of frames to determine the target boundary detection results of the area to be detected, including:
[0208] S601. Obtain the number of frames whose boundary status is valid. If the number of frames is greater than a preset number threshold, for each boundary, select the boundary information with the highest confidence from the boundary information of each frame as the target boundary information; wherein the number threshold is determined according to the decision factor and the preset number of frames.
[0209] The decision factor α is a multiplication factor set by the server according to actual conditions. F After the boundary detection result is obtained, the number of frames K in which the boundary state is valid in the boundary detection result is counted among the preset frames. ovalid , if K ovalid >α·N F , it means that the boundary detection results of the preset number of frames are valid, and the server selects the boundary information with the highest confidence as the target boundary information based on the boundary information of each frame. Optionally, the server can count the K corresponding to each boundary separately. ovalid Angle θ and K ovalid distance d, for each boundary, determine [θ min ,θ max ] corresponds to the angle value θ with the highest confidence opt As the angle value of the boundary output, determine [d min ,d max ] corresponds to the distance d with the highest confidence opt As the distance value of the boundary output, determine the angle value θ corresponding to each boundary respectively opt and distance d opt , as the target boundary information of the area to be detected.
[0210] S602: judging the validity of the target boundary information according to the target boundary information, the adjacent boundary relationship and the opposite edge distance; if the target boundary information is valid, outputting the target boundary information and determining the boundary state as valid.
[0211] Among them, taking a parallelogram as an example, the distance between opposite sides refers to the distance between non-adjacent sides.
[0212] In this embodiment, if the server determines that the corresponding angle, distance, and confidence in the target boundary information are all within the corresponding preset value ranges, the target boundary information is determined to be valid; according to the value ranges of the angles of each adjacent edge in the adjacent boundary relationship, whether the target boundary information is valid is determined; according to the actual situation of the area to be detected, the value range of the opposite edge distance is set to Determine the distance d between opposite sides (k,k+2) Whether it is within the value range, if not within the value range, the current target boundary information is determined to be invalid, if the invalid target boundary information is more than the preset threshold, for example, if the area to be detected is a quadrilateral, the preset threshold can be 2, then according to the confidence corresponding to each boundary, the target boundary information corresponding to the boundary with the smallest confidence is determined to be invalid. The above judgment conditions can be executed in a preset order or simultaneously. It should be noted that if there is a boundary with invalid target boundary information, the target boundary information of the current area to be detected is determined to be invalid.
[0213] S603: If the target boundary information is invalid, output the target boundary information corresponding to the default boundary model, and determine that the boundary state is invalid.
[0214] In this embodiment, the server determines that the target boundary information is invalid, that is, the current target boundary information cannot accurately reflect the boundary information of the area to be detected. At this time, the target boundary information is invalidated, and the server can output the target boundary information corresponding to the initialized default boundary model as the boundary information of the current area to be detected. Optionally, the server can also mark the current target boundary information as invalid for subsequent operations such as checking the boundary detection status of the area to be detected.
[0215] In this embodiment, the server performs comprehensive quantification on the boundary detection results of multiple frames to once again determine the validity of the target boundary information. Through multiple quantizations, the boundary detection results of the area to be detected are more accurate and reliable.
[0216] To improve the accuracy of the sample data, after obtaining the original target points and before the single-frame boundary detection, the server can filter the original target points. In one embodiment, after obtaining multiple frames of original target points in the area to be detected, the method further includes:
[0217] The original target points are preprocessed to remove the noise points in the original target points; the noise points include the moving points in the area to be detected and the noise points in the preset area.
[0218] In this embodiment, after acquiring the original target point, the server projects the original target point into a rectangular coordinate system. Optionally, the clutter may also include clutter in the radar blind area, motion points, left and right noise points, and near front noise points. When performing data preprocessing, the server may set R min R is the blind area of the radar. <R min The original target points are determined as the clutter points in the blind area and are filtered out. Based on the above step S201, the original target points have their corresponding data, including the speed of each original target point. During data preprocessing, the server can determine the original target points whose speed is not 0 as moving points and filter them out. The server can also set the left and right boundary thresholds x of the radar according to the actual placement of the radar. l , x r , that is, x>x r or x <x l The original target points are determined as left and right noise points and filtered out; the server can also set the threshold y of the radar's forward distance according to the actual situation of the radar. u , that is, y <y uThe original target point is determined as a near-front noise point and is filtered out; alternatively, the server may also filter out non-valid points in the detection area according to other filtering rules, which is not limited in this embodiment.
[0219] In this embodiment, the server filters out invalid points according to a variety of noise point determination rules during the data preprocessing stage, which improves the validity of the original target point samples to a certain extent and indirectly improves the accuracy of subsequent boundary detection.
[0220] In order to better illustrate the above method, Fig.11 As shown, this embodiment provides a boundary detection method, which specifically includes:
[0221] S101, obtaining at least two consecutive frames of original target points in the area to be detected;
[0222] S102, performing data preprocessing on the original target points to remove the clutter in the original target points;
[0223] S103 . On the plane of the coordinate system where the sensor is located, an initial boundary model of each boundary of the area to be detected is obtained based on the original target point of the current frame.
[0224] S104, for the initial boundary model of each boundary, perform multiple boundary searches within a preset angle range and a preset distance range to determine boundary parameters of each boundary of the area to be detected;
[0225] S105, determining a valid boundary model of the area to be detected according to the boundary parameters of each boundary and the relationship between adjacent boundaries;
[0226] S106, performing boundary search according to the angle of the effective boundary model to obtain the boundary detection result of the current frame; the boundary detection result includes boundary information and boundary status of the area to be detected;
[0227] S107, determining whether the number of frames monitored by the boundary has reached the preset number of frames; if so, executing step S108; if not, returning to executing step S103;
[0228] S108, obtaining the number of frames whose boundary status is valid, and if the number of frames is greater than a preset number threshold, for each boundary, selecting the boundary information with the highest confidence from the boundary information of each frame as the target boundary information;
[0229] S109, judging the validity of the target boundary information according to the target boundary information, the adjacent boundary relationship and the opposite edge distance; if the target boundary information is valid, executing step S110; if the target boundary information is invalid, executing step S111;
[0230] S110, outputting target boundary information, and determining that the boundary state is valid;
[0231] S111. Output target boundary information corresponding to the default boundary model, and determine that the boundary state is invalid.
[0232] In this embodiment, the server pre-processes the original target points to preliminarily screen out invalid original target points. In addition, during the boundary detection process, the server first performs boundary detection on the original target points of each frame, and then performs comprehensive quantification based on the boundary detection results of multiple frames, thereby improving the stability and accuracy of the boundary detection results in multiple dimensions.
[0233] The implementation principle and technical effect of the boundary detection method provided in the above embodiment are similar to those of the above method embodiment, and will not be repeated here.
[0234] It should be understood that although Figure 6-11 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 6-11 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.
[0235] In one embodiment, Fig.12 As shown, a boundary detection device is provided, comprising: an acquisition module 01, a boundary detection module 02 and a comprehensive quantification module 03, wherein:
[0236] The acquisition module 01 is used to acquire at least two consecutive frames of original target points in the area to be detected;
[0237] The boundary detection module 02 is used to perform boundary detection processing on each frame of the original target point to obtain the boundary detection result of each frame of the area to be detected;
[0238] The comprehensive quantization module 03 is used to perform multi-frame comprehensive quantization detection on the boundary detection results of a preset number of frames to determine the target boundary detection results of the area to be detected.
[0239] In one embodiment, Fig.13 As shown, the above-mentioned boundary detection module 02 includes a creation unit 021, a search unit 022 and a determination unit 023, wherein:
[0240] A creation unit 021 is used to obtain an initial boundary model of each boundary of the area to be detected based on the original target point of the current frame on the plane of the coordinate system where the sensor is located;
[0241] A search unit 022 is used to perform multiple boundary searches within a preset angle range and a preset distance range for the initial boundary model of each boundary, so as to determine boundary parameters of each boundary of the area to be detected;
[0242] A determination unit 023, used to determine a valid boundary model of the area to be detected according to the boundary parameters of each boundary and the relationship between adjacent boundaries;
[0243] The search unit 022 is further used to perform boundary search according to the angle of the effective boundary model to obtain a boundary detection result corresponding to the original target point of the current frame;
[0244] The boundary detection result includes boundary information and / or boundary status of each boundary of the area to be detected; and / or the boundary parameters include angle, distance and / or confidence.
[0245] In one embodiment, the search unit 022 is specifically used to perform M boundary searches within a preset angle range and a preset angle step length for each boundary, based on the initial boundary model, and perform N boundary searches within a preset distance range and a preset distance step length, to obtain M*N candidate boundary models corresponding to each boundary; calculate the distance from each original target point in the current frame to each candidate boundary model of each boundary; and determine the boundary parameters of each boundary according to the distance;
[0246] Wherein, M and N are positive integers.
[0247] In one embodiment, the search unit 022 is specifically used to count the number of original target points whose distance is less than a preset distance threshold for the candidate boundary model of the i-th boundary; and determine the boundary parameter of the i-th boundary according to the candidate boundary model with the largest number of original target points;
[0248] Wherein, i is a positive integer.
[0249] In one embodiment, the search unit 022 is specifically used to search for adjacent boundary models of the effective model according to the angle of the effective boundary model if there is a valid boundary model in the area to be detected, and search for remaining boundary models according to the angles of the effective boundary model and the adjacent boundary model, output boundary information corresponding to the effective boundary model, the adjacent boundary model and the remaining boundary models, and determine that the boundary state is valid; if there is no valid boundary model, output boundary information corresponding to the default boundary model, and determine that the boundary state is invalid.
[0250] In one embodiment, when the area to be detected has an even number of boundary models, the above-mentioned search unit 022 is specifically used to, if there is a valid boundary model, search the adjacent boundary models of the valid model according to the angle of the valid boundary model, and search the remaining boundary models according to the angles of the effective boundary model and the adjacent boundary models, output the boundary information corresponding to the effective boundary model, the adjacent boundary model and the remaining boundary models, and determine that the boundary state is valid; if there is an odd number of valid boundary models that are adjacent to each other, search the remaining boundary models according to the angle of the effective boundary model, output the boundary information corresponding to the effective boundary model and the remaining boundary models, and determine that the boundary state is valid; if there is no valid boundary model, determine that the boundary state is invalid.
[0251] In one embodiment, Fig.14 As shown, the above-mentioned boundary detection device further includes an output module 04;
[0252] Output module 04 is used to determine the validity of the boundary information according to the boundary information, the adjacent boundary relationship and the opposite edge distance if the boundary status is valid. If the boundary information is valid, the boundary information is output and the boundary status is determined to be valid; if the boundary information is invalid, the boundary information corresponding to the default boundary model is output and the boundary status is determined to be invalid; if the boundary status is invalid, the boundary information corresponding to the default boundary model is output and the boundary status is determined to be invalid.
[0253] In one embodiment, Fig.15 As shown, the above-mentioned comprehensive quantification module 03 includes a selection unit 031, a judgment unit 032 and an output unit 033, wherein:
[0254] A selection unit 031 is used to obtain the number of frames whose boundary status is valid. If the number of frames is greater than a preset number threshold, for each boundary, the boundary information with the highest confidence is selected from the boundary information of each frame as the target boundary information; wherein the number threshold is determined according to the decision factor and the preset number of frames;
[0255] A judging unit 032 is used to judge the validity of the target boundary information according to the target boundary information, the adjacent boundary relationship and the opposite edge distance. If the target boundary information is valid, the target boundary information is output and the boundary state is determined to be valid;
[0256] The output unit 033 is used to output the target boundary information corresponding to the default boundary model if the target boundary information is invalid, and determine that the boundary state is invalid.
[0257] In one embodiment, Fig.16 As shown, the above-mentioned boundary detection device also includes a data processing module 05;
[0258] The data processing module 05 is used to perform data preprocessing on the original target points and remove the noise points in the original target points; the noise points include at least one of the noise points in the radar blind area in the area to be detected, the moving points, the left and right noise points, and the noise points in the preset area.
[0259] For the specific definition of the boundary detection device, please refer to the definition of the boundary detection method above, which will not be repeated here. Each module in the above-mentioned boundary detection device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0260] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.17 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a boundary detection method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0261] Those skilled in the art will understand that Fig.17 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0262] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0263] Obtain at least two consecutive frames of original target points in the area to be detected;
[0264] Perform boundary detection processing on the original target points of each frame to obtain the boundary detection result of each frame of the area to be detected; the boundary detection result includes the boundary information and boundary status of each boundary of the area to be detected;
[0265] Perform multi-frame comprehensive quantitative detection on the boundary detection results of the preset number of frames to determine the target boundary detection results of the area to be detected.
[0266] The implementation principle and technical effect of the computer device provided in the above embodiment are similar to those of the above method embodiment, and will not be repeated here.
[0267] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0268] Obtain at least two consecutive frames of original target points in the area to be detected;
[0269] Perform boundary detection processing on the original target points of each frame to obtain the boundary detection result of each frame of the area to be detected; the boundary detection result includes the boundary information and boundary status of each boundary of the area to be detected;
[0270] Perform multi-frame comprehensive quantitative detection on the boundary detection results of the preset number of frames to determine the target boundary detection results of the area to be detected.
[0271] The computer-readable storage medium provided in the above embodiment has similar implementation principles and technical effects as those of the above method embodiment, and will not be described in detail here.
[0272] In another optional embodiment, the present application also provides a sensor (such as various radar devices or integrated circuits, such as millimeter wave radar chips, etc.), which can be used to be fixedly set in the area to be detected to facilitate target detection. The sensor may include a transmitting and receiving antenna, a control unit, and a processing unit, etc. The transmitting and receiving antenna is used to send and receive radio signals to facilitate target detection: the processing unit can be used to process the echo signal to obtain target information. Among them, the above-mentioned transmitting and receiving antenna may include at least three transmitting antennas, and the at least three transmitting antennas are located on non-same straight lines (i.e., not co-linear) to facilitate the detection of pitch angles and azimuth angles.
[0273] Optionally, the sensor may further include a control unit for controlling the at least three transmitting antennas to transmit radio signals. When the sensor is fixed in the area to be detected, the control unit may control the transmitting antenna to transmit a test signal for boundary detection, which may be the same as or different from the signal used for target detection later. At the same time, the receiving antenna in the transmitting and receiving antenna may receive a test echo signal for boundary detection, and the processing unit may perform operations such as signal processing and data processing on the test echo signal to obtain boundary information on a preset two-dimensional plane.
[0274] In another optional embodiment, in order to further improve the detection accuracy of boundary information on a preset two-dimensional plane, the control unit may also control the at least three transmitting antennas to transmit narrow beam test signals in a preset dimension, that is, the preset dimension is perpendicular to the two-dimensional plane.
[0275] In an optional embodiment, the processing unit may also process the test echo signal using the method described in any embodiment of the present application to obtain the boundary information on the preset two-dimensional plane. For details, please refer to the relevant part of the present application, which will not be repeated here.
[0276] In an optional embodiment, the present application also provides a device, which may include: a device body; and a sensor as described in any embodiment of the present application disposed on the device body; wherein the sensor is used for target detection and / or communication.
[0277] Optionally, the above-mentioned device body can be intelligent transportation equipment (such as cars, bicycles, motorcycles, ships, subways, trains, etc.), security equipment (such as cameras), liquid level / flow rate detection equipment, smart wearable devices (such as bracelets, glasses, etc.), smart home devices (such as TVs, air conditioners, smart lights, etc.), various communication equipment (such as mobile phones, tablets, etc.), as well as gates, smart traffic lights, smart signs, traffic cameras and various industrial manipulators (or robots), etc., and can also be various instruments for detecting life characteristic parameters and various equipment equipped with the instruments.
[0278] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0279] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0280] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A boundary detection method, characterized in that: The method comprises: Obtain at least two consecutive frames of original target points in the area to be detected; Performing boundary detection processing on the original target points of each frame to obtain boundary detection results of each frame of the area to be detected; and Perform multi-frame comprehensive quantitative detection on the boundary detection results of a preset number of frames to determine the target boundary detection result of the area to be detected; The performing of boundary detection processing on the original target point of each frame to obtain the boundary detection results of each frame of the area to be detected includes: On the plane of the coordinate system where the sensor is located, an initial boundary model of each boundary of the area to be detected is obtained based on the original target point of the current frame; For the initial boundary model of each boundary, multiple boundary searches are performed in a preset angle range and a preset distance range to determine the boundary parameters of each boundary of the to-be-detected area; the angle includes the angle between each boundary and the longitudinal axis in the plane coordinate system, and the distance is the distance between each boundary and the origin in the plane coordinate system; Determining a valid boundary model of the area to be detected according to the boundary parameters of each boundary and the relationship between adjacent boundaries; and A boundary search is performed according to the angle of the effective boundary model to obtain a boundary detection result corresponding to the original target point of the current frame.
2. The method according to claim 1, characterized in that: The boundary detection result includes boundary information and / or boundary status of each boundary of the area to be detected; and / or boundary parameters include angle, distance and / or confidence; the boundary status includes whether each boundary of the area to be detected is valid; the confidence includes the number of original target points in each boundary whose distance from the original target point to the boundary is less than a preset distance threshold.
3. The method according to claim 2, characterized in that The initial boundary model for each boundary performs multiple boundary searches within a preset angle range and a preset distance range to determine boundary parameters of each boundary of the area to be detected, including: For each boundary, taking the initial boundary model as a reference, performing boundary searches M times in a preset angle range with a preset angle step, and performing boundary searches N times in a preset distance range with a preset distance step, to obtain M*N candidate boundary models corresponding to each boundary; Calculating the distance between each original target point of the current frame and each candidate boundary model of each boundary; and Determine a boundary parameter of each boundary according to the distance; Wherein, M and N are positive integers.
4. The method according to claim 3, characterized in that The step of determining the boundary parameter of each boundary according to the distance includes: For the candidate boundary model of the i-th boundary, count the number of original target points whose distance is less than a preset distance threshold; Determining the boundary parameters of the i-th boundary according to the candidate boundary model with the largest number of original target points; Wherein, i is a positive integer.
5. The method according to claim 2, characterized in that: The performing boundary search according to the angle of the effective boundary model to obtain a boundary detection result corresponding to the original target point of the current frame includes: If the effective boundary model exists in the area to be detected, searching for adjacent boundary models of the effective boundary model according to the angle of the effective boundary model, and searching for remaining boundary models according to the angles of the effective boundary model and the adjacent boundary models, outputting boundary information corresponding to the effective boundary model, the adjacent boundary model and the remaining boundary models, and determining that the boundary state is valid; If the valid boundary model does not exist, the boundary information corresponding to the default boundary model is output, and the boundary state is determined to be invalid.
6. The method according to claim 5, characterized in that The method further comprises: If the boundary state is valid, the validity of the boundary information is judged according to the boundary information, the adjacent boundary relationship and the opposite edge distance; if the boundary information is valid, the boundary information is output and the boundary state is determined to be valid; if the boundary information is invalid, the boundary information corresponding to the default boundary model is output and the boundary state is determined to be invalid; If the boundary state is invalid, the boundary information corresponding to the default boundary model is output to determine that the boundary state is invalid.
7. The method according to claim 2, characterized in that If the area to be detected has an even number of boundary models, performing boundary search according to the angle of the effective boundary model to obtain a boundary detection result corresponding to the original target point of the current frame includes: If there is an effective boundary model, searching for an adjacent boundary model of the effective boundary model according to the angle of the effective boundary model, and searching for the remaining boundary models according to the angles of the effective boundary model and the adjacent boundary models, outputting boundary information corresponding to the effective boundary model, the adjacent boundary model and the remaining boundary models, and determining that the boundary state is effective; If there are an odd number of the effective boundary models that are adjacent to each other, searching for the remaining boundary models according to the angle of the effective boundary model, outputting boundary information corresponding to the effective boundary model and the remaining boundary models, and determining that the boundary state is valid; If the valid boundary model does not exist, the boundary state is determined to be invalid.
8. The method according to claim 7, characterized in that The method further comprises: If the boundary state is valid, the validity of the boundary information is judged according to the boundary information, the adjacent boundary relationship and the opposite edge distance; if the boundary information is valid, the boundary information is output and the boundary state is determined to be valid; if the boundary information is invalid, the boundary information corresponding to the default boundary model is output and the boundary state is determined to be invalid; If the boundary state is invalid, the boundary information corresponding to the default boundary model is output to determine that the boundary state is invalid.
9. The method according to claim 2, characterized in that: The step of performing multi-frame comprehensive quantitative detection on the boundary detection results of the preset number of frames to determine the target boundary detection result of the area to be detected includes: Obtaining the number of frames in which the boundary state is valid, and if the number of frames is greater than a preset number threshold, for each boundary, selecting the boundary information with the highest confidence from the boundary information of each frame as the target boundary information; wherein the number threshold is determined according to the decision factor and the preset number of frames; Judging the validity of the target boundary information according to the target boundary information, the adjacent boundary relationship and the opposite edge distance, and if the target boundary information is valid, outputting the target boundary information and determining that the boundary state is valid; If the target boundary information is invalid, the target boundary information corresponding to the default boundary model is output, and the boundary state is determined to be invalid.
10. The method according to claim 2, characterized in that After acquiring multiple frames of original target points in the area to be detected, the method further includes: The original target points are subjected to data preprocessing to remove the clutter in the original target points; the clutter includes at least one of clutter in the radar blind area in the area to be detected, motion points, left and right noise points, and noise points in a preset area.
11. A boundary detection device, characterized in that: The device comprises: An acquisition module, used to acquire at least two consecutive frames of original target points in the area to be detected; A boundary detection module is used to perform boundary detection processing on each frame of the original target point to obtain a boundary detection result of each frame of the area to be detected; the boundary detection result includes boundary information and boundary status of each boundary of the area to be detected; A comprehensive quantization module, used for performing multi-frame comprehensive quantization detection on the boundary detection results of a preset number of frames to determine the target boundary detection result of the area to be detected; The performing of boundary detection processing on the original target point of each frame to obtain the boundary detection results of each frame of the area to be detected includes: On the plane of the coordinate system where the sensor is located, an initial boundary model of each boundary of the area to be detected is obtained based on the original target point of the current frame; For the initial boundary model of each boundary, multiple boundary searches are performed in a preset angle range and a preset distance range to determine the boundary parameters of each boundary of the to-be-detected area; the angle includes the angle between each boundary and the longitudinal axis in the plane coordinate system, and the distance is the distance between each boundary and the origin in the plane coordinate system; Determining a valid boundary model of the area to be detected according to the boundary parameters of each boundary and the relationship between adjacent boundaries; and A boundary search is performed according to the angle of the effective boundary model to obtain a boundary detection result corresponding to the original target point of the current frame.
12. A target detection method, characterized in that: A sensor arranged in a to-be-detected area performs target detection, the to-be-detected area having at least one physical boundary, the method comprising: Performing noise reduction processing on the original target points acquired by the sensor to obtain valid target points; Performing modeling based on the valid target points to obtain a target boundary detection result corresponding to the physical boundary; and Determine the boundary of the effective monitoring area in the area to be detected based on the target boundary detection result and the parameters of the sensor; Wherein, the modeling based on the valid target points includes constructing boundary models corresponding to the physical boundaries based on the valid target points; The modeling based on the valid target points to obtain a target boundary detection result corresponding to the physical boundary includes: On the plane of the coordinate system where the sensor is located, an initial boundary model of each boundary of the area to be detected is obtained based on the valid target points of the current frame; For the initial boundary model of each boundary, multiple boundary searches are performed in a preset angle range and a preset distance range to determine the boundary parameters of each boundary of the to-be-detected area; the angle includes the angle between each boundary and the longitudinal axis in the plane coordinate system, and the distance is the distance between each boundary and the origin in the plane coordinate system; Determining a valid boundary model of the area to be detected according to the boundary parameters of each boundary and the relationship between adjacent boundaries; and Perform boundary search according to the angle of the effective boundary model to obtain a boundary detection result corresponding to the effective target point of the current frame; According to the boundary detection results of a preset number of frames, a target boundary detection result corresponding to the physical boundary is determined.
13. The method according to claim 12, characterized in that For a preset two-dimensional plane in the area to be detected; performing noise reduction processing on the original target points acquired by the sensor to obtain valid target points, including: Performing signal processing on the echo signal to obtain the original target point; and After projecting each of the original target points onto the preset two-dimensional plane, the noise reduction process is continued to obtain the valid target points located on the preset two-dimensional plane.
14. The method according to claim 13, characterized in that The noise reduction process includes blind spot noise filtering, moving point filtering, left and right noise filtering and / or close distance front noise filtering.
15. The method according to claim 13, characterized in that The valid target points located on the preset two-dimensional plane include at least one frame of valid target points; The modeling based on the effective target points to obtain a target boundary detection result corresponding to the physical boundary includes a single-frame boundary detection step; The single frame boundary detection step comprises: For the valid target points in any frame, obtaining the target boundary detection result of a single frame based on a preset boundary model; Wherein, the boundary of the effective monitoring area in the area to be detected is determined based on the target boundary detection result of the single frame and the parameters of the sensor.
16. The method according to claim 15, characterized in that The modeling based on the effective target points to obtain the target boundary detection result corresponding to the physical boundary also includes a multi-frame comprehensive evaluation step; The multi-frame comprehensive evaluation step comprises: For the target boundary detection results of the single frames of the preset number of frames, each boundary with the highest confidence is evaluated to obtain a comprehensive target boundary detection result; Wherein, the boundary of the effective monitoring area in the area to be detected is determined based on the comprehensive target boundary detection result and the parameters of the sensor.
17. The method according to claim 13, characterized in that When acquiring the effective target point for a preset two-dimensional plane in the area to be detected, the sensor transmits a narrow beam test signal in a dimension perpendicular to the preset two-dimensional plane.
18. A method for target detection, characterized in that: include: Target detection is performed based on the boundary detection result obtained by the boundary detection method as described in any one of claims 1-10, or the boundary of the effective monitoring area obtained by the boundary detection method as described in any one of claims 12-17.
19. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the processor implements the steps of the method according to any one of claims 1 to 10 or any one of claims 12 to 18.
20. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method of any one of claims 1 to 10 or any one of claims 12 to 18 are implemented.
21. A sensor, characterized in that: The sensor is fixedly arranged in the area to be detected, and the sensor comprises: At least three transmitting antennas that are not co-linear; A control unit, used to control the at least three transmitting antennas to transmit narrow beam test signals in a preset dimension; A processing unit, configured to process the test echo signal according to any one of claims 1 to 10, or the method according to any one of claims 12 to 17, to obtain boundary information on a preset two-dimensional plane; Wherein, the preset dimension is perpendicular to the two-dimensional plane.
22. The sensor according to claim 21, characterized in that The control unit is further used to control the at least three transmitting antennas to transmit detection signals; and The processing unit is further configured to process the detection echo signal based on the boundary information so as to perform target detection on the preset two-dimensional plane in the area to be detected.
23. The sensor according to claim 21, characterized in that The sensor is a millimeter wave radar.
24. A target detection device, characterized in that: include: Equipment body; and a sensor as claimed in any one of claims 21 to 23, arranged on the device body; Wherein, the sensor is used for target detection and / or communication.
Citation Information
Patent Citations
Boundary region detection method and device, electronic equipment and storage medium
CN111025241A
