Method and system for generating occupation map based on image layer target filtering

The image layer target filtering method is used to distinguish the targets and obstacles perceived by the unmanned agent, which solves the problem of target points being misidentified as obstacles in the existing technology and improves the success rate of trajectory planning and task execution.

CN118674879APending Publication Date: 2024-09-20CHINA NANHU ACAD OF ELECTRONICS & INFORMATION TECH
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310267751.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-14
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

Existing occupancy map generation methods cannot effectively distinguish between targets and obstacles perceived by unmanned agents, resulting in target points being misidentified as obstacles in path planning, resulting in trajectory planning failure or trajectory points being far away from expected trajectory points.

Method used

The target filtering method based on the image layer is used to obtain the image sequence and depth map sequence, perform target recognition and coordinate transformation, filter out non-target point clouds, back-project to the world coordinate system, and generate an occupation map to distinguish targets and obstacles.

Benefits of technology

It improves the success rate of trajectory planning and task execution under specific tasks, avoids targets being misidentified as obstacles in the occupied map, and enhances the target tracking and obstacle avoidance capabilities of unmanned agents.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118674879A
    Figure CN118674879A
Patent Text Reader

Abstract

The invention provides an occupation map generation method and system based on image layer target filtering, and belongs to the technical field of unmanned driving, and the method comprises the steps: obtaining an image sequence and a corresponding depth map sequence in the same time period; acquiring a vertex position coordinate range and a central point position coordinate of each target frame in each image in the image sequence; performing registration on each pixel of each depth image in the depth image sequence and each pixel in the corresponding image by utilizing coordinate transformation so as to determine a first position coordinate of each pixel point in each depth image on a corresponding pixel point on the corresponding image; converting each pixel point in each depth image into point cloud data; target point cloud filtering is carried out on all the point clouds; and performing back projection on each non-target point cloud in each depth map to determine the position of an obstacle in each occupied map. According to the invention, the target and the common obstacle can be distinguished, and the success rate of trajectory planning and the success rate of task execution under a specific task are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of unmanned driving, and in particular relates to an occupancy map generation method and system based on image layer target filtering. Background Art

[0002] At present, path planning in autonomous driving technology uses sensor equipment carried by unmanned intelligent bodies such as unmanned vehicles, drones, and unmanned ships to perceive the surrounding environment, and uses positioning modules to obtain their own positioning information to complete map construction, and combines constraints such as the unmanned intelligent body's dynamic feasibility and specific task requirements to generate executable trajectories.

[0003] Occupancy map, also known as occupancy grid map, is the most important map representation method in path planning, which is used to describe the environmental information around the unmanned intelligent body. The unmanned intelligent body uses depth cameras, lidar and other sensor devices to perceive the surrounding environment and obtain point cloud data to generate an occupancy map. The occupancy map contains the location and size of obstacles in the environment, the passability of the route and other information for path planning. Image recognition refers to the technology of using computers to process, analyze and understand images to identify targets and objects of various different patterns. It is a practical application of computer vision and deep learning algorithms.

[0004] When an unmanned intelligent agent is performing some specific tasks, such as tracking and avoiding obstacles, and attacking specific targets, it is necessary to use the results of image recognition to obtain the position of the specific target, and use the target position as the target point for path planning. The existing obstacle avoidance path planning methods mainly include: sampling, optimization, search, potential field and feature points. These obstacle avoidance methods usually have good planning effects in simple scenes, but they all require that the planning target point is not in the obstacles in the occupation map, otherwise the planning will fail. In the existing occupation map generation method, obstacles are generated according to the position and distance of the point cloud, and the target and obstacle to be tracked or attacked are not distinguished from the point cloud. Therefore, in tasks such as obstacle avoidance tracking and target attack, how to distinguish between targets and ordinary obstacles when generating the occupation map, so that the unmanned intelligent agent can reach the desired target point when executing the obstacle avoidance path planned based on the occupation map is a problem that needs to be solved urgently.

[0005] For example, the application number 202110352201.8 discloses a method and device for generating an occupancy grid map, which acquires point cloud data through a laser radar, accumulates and processes multiple frames of point cloud data, and then converts the occupancy grid map coordinate system into the world coordinate system to obtain a target occupancy grid map based on the world coordinate system; according to a threshold, the value of the point on the target occupancy grid map whose sum of data corresponding to the point in the multiple frames of target data is less than a preset threshold is set to a first value, otherwise it is set to a second value; the value of the point on the target occupancy grid map is updated in the order of the acquisition time of the multiple frames of target data, and if up to the current frame of target data, the data in the multiple frames of target data whose acquisition time is earlier than the current frame of target data, a specified number of consecutive If the data indicates that there is no obstacle at the point, a preset value is subtracted from the intermediate value to obtain a difference, and the value of the point on the target occupation grid map is updated according to the difference or updated to 0; otherwise, the value of the point on the target occupation grid map is updated to the sum of the value of the point on the target occupation grid map after the target data of the current frame and the target data of the previous frame are updated; finally, the generated target occupation grid map is used to predict the driving path of the target vehicle, but when acquiring point cloud data, it is impossible to distinguish between targets (such as tracking targets and strike targets) and ordinary obstacles. The target is built into an obstacle in the occupation grid map. The target point in the obstacle of the occupation grid map will cause the subsequent trajectory planning to fail or the planned trajectory point to be far away from the expected trajectory point. Summary of the invention

[0006] One of the purposes of the present invention is to provide an occupancy map generation method based on image layer target filtering, wherein the occupancy map can distinguish between targets (such as tracking targets and strike targets) and common obstacles, thereby avoiding the target being built as an obstacle in the occupancy grid map, resulting in subsequent trajectory planning failure or the planned trajectory point being far away from the expected trajectory point, thereby improving the success rate of trajectory planning and the success rate of task execution under specific tasks.

[0007] A second object of the present invention is to provide an occupancy map generation system based on image layer object filtering.

[0008] In order to achieve one of the above purposes, the present invention adopts the following technical solution:

[0009] A method for generating an occupancy map based on image layer object filtering, the method comprising the following steps:

[0010] Step S1, obtaining an image sequence and a corresponding depth map sequence within the same time period;

[0011] Step S2, obtaining the vertex position coordinate range and center point position coordinate of each target frame in each image in the image sequence;

[0012] Step S3: using coordinate transformation, registering each pixel of each depth map in the depth map sequence with each pixel in the corresponding image, so as to determine the first position coordinates of each pixel point in each depth map corresponding to the pixel point in the corresponding image;

[0013] Step S4, converting each pixel in each depth image into point cloud data;

[0014] Step S5, performing target point cloud filtering on each point cloud in each depth map according to the vertex position coordinate range of each target frame in each image and the first position coordinate, to obtain all non-target point clouds in each depth map;

[0015] Step S6: back-project each non-target point cloud in each depth map to determine the position of obstacles in each occupied map.

[0016] Furthermore, the specific implementation process of step S2 includes:

[0017] Step S21, performing target recognition on each image in the image sequence, so as to draw a target frame at a position area recognized as a target in each image;

[0018] The target frame is the smallest frame surrounding the target area;

[0019] Step S22, selecting the maximum horizontal coordinate, the minimum horizontal coordinate, the maximum vertical coordinate and the minimum vertical coordinate from the position coordinates of each pixel point in each target frame in each image as the vertex position coordinate range in the corresponding target frame to calculate the center point position coordinates of each target frame in each image.

[0020] Furthermore, the specific implementation process of step S3 includes:

[0021] Step S31, converting a first camera coordinate system and a second camera coordinate system used to acquire the image sequence and the depth map sequence;

[0022] Step S32: convert each pixel value in each depth map in the depth map sequence into a corresponding image according to the conversion result, so as to determine a first position coordinate of a pixel point corresponding to each pixel value in each depth map in the corresponding image.

[0023] Furthermore, the specific implementation process of step S31 includes:

[0024] Step S311, acquiring a first camera intrinsic parameter and a first camera extrinsic parameter for acquiring the image sequence, and a second camera intrinsic parameter and a second camera extrinsic parameter for acquiring the depth map sequence;

[0025] Step S312: constructing a first camera intrinsic parameter matrix and a second camera intrinsic parameter matrix according to the first camera intrinsic parameter and the second camera intrinsic parameter, respectively, to determine a first transformation relationship and a second transformation relationship between a pixel coordinate system and the first camera coordinate system and the second camera coordinate system, respectively;

[0026] Step S313: constructing a first camera extrinsic parameter matrix and a second camera extrinsic parameter matrix according to the first camera extrinsic parameters and the second camera extrinsic parameters, respectively, to determine a third transformation relationship and a fourth transformation relationship between a world coordinate system and the first camera coordinate system and the second camera coordinate system, respectively;

[0027] Step S314: derive a transformation relationship between the first camera coordinate system and the second camera coordinate system according to the first transformation relationship, the second transformation relationship, the third transformation relationship and the fourth transformation relationship.

[0028] Furthermore, the specific implementation process of step S6 includes:

[0029] Step S61: back-project each non-target point cloud in each depth map to the world coordinate system according to the second camera extrinsic parameter matrix to obtain the position of each non-target point cloud in each depth map in the world coordinate system;

[0030] Step S62: judging, according to the depth value of each non-target point cloud in each depth map, whether the position of each non-target point cloud in each depth map in the world coordinates is occupied at the corresponding position in the occupation map;

[0031] Step S63: Count the number of times each position in the occupation map is occupied to determine the occupation probability of each position in the occupation map, and mark the occupation probability value of each position in the occupation map.

[0032] In order to achieve the second objective above, the present invention adopts the following technical solution:

[0033] An occupancy map generation system based on image layer object filtering, the occupancy map generation system comprising:

[0034] A first acquisition module is used to acquire an image sequence and a corresponding depth map sequence within the same time period;

[0035] A second acquisition module is used to acquire the vertex position coordinate range and the center point position coordinate of each target frame in each image in the image sequence;

[0036] A registration module, configured to register each pixel of each depth map in the depth map sequence with each pixel in the corresponding image by using coordinate transformation, so as to determine a first position coordinate of a corresponding pixel point in each depth map on the corresponding image;

[0037] A conversion module, used to convert each pixel in each depth image into point cloud data;

[0038] A filtering module, configured to filter target point clouds for each point cloud in each depth map according to the vertex position coordinate range of each target frame in each image and the first position coordinate, to obtain all non-target point clouds in each depth map;

[0039] The back-projection module is used to back-project each non-target point cloud in each depth map to determine the position of obstacles in each occupied map.

[0040] Furthermore, the second acquisition module includes:

[0041] A target recognition submodule, used for performing target recognition on each image in the image sequence, so as to draw a target frame at a position area recognized as a target in each image;

[0042] The target frame is the smallest frame surrounding the target area;

[0043] A selection submodule is used to select the maximum horizontal coordinate, the minimum horizontal coordinate, the maximum vertical coordinate and the minimum vertical coordinate from the position coordinates of each pixel point in each target frame in each image as the vertex position coordinate range in the corresponding target frame to calculate the center point position coordinates of each target frame in each image.

[0044] Furthermore, the registration module includes:

[0045] A first conversion submodule, used for converting a first camera coordinate system and a second camera coordinate system used for acquiring the image sequence and the depth map sequence;

[0046] The second conversion submodule is used to convert each pixel value in each depth map in the depth map sequence into a corresponding image according to the conversion result, so as to determine the first position coordinates of the pixel point corresponding to each pixel value in each depth map in the corresponding image.

[0047] Furthermore, the first conversion submodule includes:

[0048] A first acquisition subunit, configured to acquire a first camera intrinsic parameter and a first camera extrinsic parameter for acquiring the image sequence, and a second camera intrinsic parameter and a second camera extrinsic parameter for acquiring the depth map sequence;

[0049] A first construction subunit is used to construct a first camera intrinsic parameter matrix and a second camera intrinsic parameter matrix according to the first camera intrinsic parameter and the second camera intrinsic parameter, respectively, so as to determine a first transformation relationship and a second transformation relationship between a pixel coordinate system and the first camera coordinate system and the second camera coordinate system, respectively;

[0050] A second construction subunit is used to construct a first camera extrinsic parameter matrix and a second camera extrinsic parameter matrix according to the first camera extrinsic parameter and the second camera extrinsic parameter, respectively, so as to determine a third transformation relationship and a fourth transformation relationship between a world coordinate system and the first camera coordinate system and the second camera coordinate system, respectively;

[0051] The derivation subunit is used to derive the transformation relationship between the first camera coordinate system and the second camera coordinate system according to the first transformation relationship, the second transformation relationship, the third transformation relationship and the fourth transformation relationship.

[0052] Furthermore, the back projection module includes:

[0053] A back-projection submodule, configured to back-project each non-target point cloud in each depth map to the world coordinate system according to the second camera extrinsic parameter matrix, to obtain a position of each non-target point cloud in each depth map in the world coordinate system;

[0054] A judgment submodule, used to judge whether the position of each non-target point cloud in each depth map in the world coordinates is occupied in the corresponding position in the occupation map according to the depth value of each non-target point cloud in each depth map;

[0055] The statistical submodule is used to count the number of times each position in the occupation map is occupied to determine the occupation probability of each position in the occupation map, and mark the occupation probability value of each position in the occupation map.

[0056] In summary, the solution proposed by the present invention has the following technical effects:

[0057] The present invention utilizes coordinate transformation to realize the registration of each pixel of each depth map in the depth map sequence with each pixel in the corresponding image, and obtains the first position coordinates of the corresponding pixel of each pixel in each depth map on the corresponding image; utilizes the point cloud data corresponding to each pixel in each depth image, the center point position coordinates of each target frame in the image, and the first position coordinates of the corresponding pixel of each pixel in the corresponding depth map on the corresponding image, to realize the filtering of the target point cloud in each depth map, and obtain all the non-target point clouds in each depth map; through the back projection of each non-target point cloud in each depth map, the position of obstacles in each occupation map is obtained, and the tracking target and the attack target are filtered out when the occupation map is generated, thereby greatly improving the success rate of trajectory planning and the success rate of task execution under specific tasks; the present invention consumes little computing power, can be conveniently deployed on a micro-sized intelligent unmanned human body with limited computing power resources, and can effectively improve the success rate and completion degree of the intelligent unmanned human body in performing tasks such as target tracking and obstacle avoidance and target attack; the present invention can be used for the generation of occupation maps when the intelligent unmanned human body autonomously performs tracking and obstacle avoidance tasks and obstacle avoidance and attack tasks. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0059] Figure 1 The figure is a flow chart of the method for generating an occupancy map based on image layer object filtering of the present invention. DETAILED DESCRIPTION

[0060] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0061] This embodiment provides a method for generating an occupancy map based on image layer object filtering. Figure 1 , the occupation map generation method comprises the following steps:

[0062] S1. Obtain an image sequence and a corresponding depth map sequence within the same time period.

[0063] The image sequence in this embodiment can be collected by a color camera or a black and white camera. The depth map sequence can be obtained by a depth camera, and the depth camera can be a structured light depth camera, a binocular depth camera, or a time-of-flight (TOF) depth camera. The color camera shoots or the black and white camera and the depth camera are both installed on the intelligent unmanned body, and the color camera shoots or the black and white camera and the depth camera are placed horizontally on the intelligent unmanned body and face forward. The intelligent unmanned body can be an unmanned device traveling on land, in the air, or in water, such as a drone, an autonomous vehicle, a robot, an unmanned ship, an underwater unmanned boat, etc.

[0064] In this embodiment, the time periods of the image sequence and the depth map sequence are the same and correspond one to one.

[0065] S2. Obtain the vertex position coordinate range and center point position coordinate of each target frame in each image in the image sequence.

[0066] The specific implementation process of this step includes:

[0067] Step S21: performing target recognition on each image in the image sequence, so as to draw a target frame at the position area recognized as the target in each image.

[0068] The target recognition method in this embodiment can be implemented using existing technologies, such as inputting a historical image data set with target labels into a neural network for training, and then using the trained neural network for target detection (i.e., target recognition). The neural network in this embodiment can be a YOLOV5 neural network, yolov3, yolov4, Faster R-CNN, and SSD.

[0069] The target frame in this embodiment is the smallest box that surrounds the target area, that is, the target frame with the smallest area surrounding a specific target is defined in a color image or a black and white image, and the target category corresponding to the target frame is marked. The five-tuple consisting of the target category and the target frame position constitutes the label of the image. The five elements of the label five-tuple are the label of the target category, the minimum value of the horizontal coordinate of the target frame (i.e., the minimum value of the horizontal coordinate), the maximum value of the horizontal coordinate of the target frame (i.e., the maximum value of the horizontal coordinate), the minimum value of the vertical coordinate of the target frame (i.e., the minimum value of the vertical coordinate), and the maximum value of the vertical coordinate of the target frame (i.e., the maximum value of the vertical coordinate). Each image corresponds to the label of the image one by one.

[0070] Step S22, selecting the maximum horizontal coordinate, the minimum horizontal coordinate, the maximum vertical coordinate and the minimum vertical coordinate from the position coordinates of each pixel point in each target frame in each image as the vertex position coordinate range in the corresponding target frame to calculate the center point position coordinates of each target frame in each image.

[0071] In this embodiment, the center point position coordinates of each target frame in each image are:

[0072] (x, y) = ((x right +x left ) / 2,(y down +y up ) / 2);

[0073] Among them, (x, y) is the coordinate of the center point of the target box; x right , x left ,y down and up The maximum value of the horizontal coordinate, the minimum value of the horizontal coordinate, the maximum value of the vertical coordinate, and the minimum value of the vertical coordinate of the four vertices of the target box respectively.

[0074] S3. Using coordinate transformation, align each pixel of each depth map in the depth map sequence with each pixel in the corresponding image to determine a first position coordinate of a corresponding pixel point in each depth map on the corresponding image.

[0075] The specific implementation process of this step includes:

[0076] Step S31: converting a first camera coordinate system and a second camera coordinate system used to acquire the image sequence and the depth map sequence.

[0077] The specific implementation process of this step includes:

[0078] Step S311, acquiring a first camera intrinsic parameter and a first camera extrinsic parameter for acquiring the image sequence, and a second camera intrinsic parameter and a second camera extrinsic parameter for acquiring the depth map sequence;

[0079] The loaded first camera (ie, color camera or black and white camera) and the second camera (ie, depth camera) are calibrated to obtain first camera intrinsic parameters and first camera extrinsic parameters corresponding to the camera and second camera intrinsic parameters and second camera extrinsic parameters corresponding to the depth camera.

[0080] Step S312: construct a first camera intrinsic parameter matrix and a second camera intrinsic parameter matrix respectively according to the first camera intrinsic parameter and the second camera intrinsic parameter to determine a first transformation relationship and a second transformation relationship between the pixel coordinate system and the first camera coordinate system and the second camera coordinate system respectively.

[0081] The camera's intrinsic parameters (first camera intrinsic parameters and second camera intrinsic parameters) are fixed parameters when the camera leaves the factory. They are obtained by consulting the configuration file or by calibration using methods such as Zhang Zhengyou's calibration method. The obtained intrinsic parameter matrix is ​​expressed as H = (f x , f y , c x , cy ), f x is the ratio of the focal length to the lateral size of a single pixel in the imaging plane (image imaging plane or depth map imaging plane), f y is the ratio of the focal length to the size of a single pixel in the longitudinal direction of the imaging plane, c x is the offset between the x-axis zero point of the pixel coordinate system and the x-axis zero point of the camera coordinate system, c y It is the offset between the y-axis zero point of the pixel coordinate system and the y-axis zero point of the camera coordinate system.

[0082] Through the intrinsic parameter matrices of the two cameras (i.e., the first camera intrinsic parameter matrix and the second camera intrinsic parameter matrix), the corresponding relationship between the coordinates of a point in space in the camera coordinate system and the coordinates in the camera pixel coordinate system is obtained, wherein the first transformation relationship between the coordinates of a space point in the first camera coordinate system (i.e., the color camera coordinate system or the black and white camera coordinate system) and the corresponding pixel coordinate system (i.e., the color camera pixel coordinate system or the black and white camera coordinate system) is expressed as:

[0083] I C =H C C C ;

[0084] C C =H C -1 I C ;

[0085] H C =(f x,1 , f y,1 , c x,1 , c y,1 );

[0086] Among them, C C I is the coordinate of the space point in the first camera coordinate system; C is the coordinate of the space point in the corresponding pixel coordinate system; H C is the first internal parameter matrix of the color camera or the black and white camera; H C -1 is the inverse matrix of the first intrinsic parameter matrix of the first camera (ie, the color camera or the black and white camera); x,1 is the ratio of the focal length to the size of a single pixel in the lateral direction of the image plane; f y,1 is the ratio of the focal length to the size of a single pixel in the longitudinal direction of the image plane, c x,1 is the offset between the x-axis zero point of the pixel coordinate system and the x-axis zero point of the color camera or black and white camera coordinate system, c y,1 It is the offset between the y-axis zero point of the pixel coordinate system and the y-axis zero point of the color camera or black and white camera coordinate system.

[0087] The second transformation relationship between the coordinates of the same spatial point in the second camera coordinate system (ie, the depth camera coordinate system) and the corresponding pixel coordinate system is expressed as:

[0088] I D =H D C D ;

[0089] C D =H D -1 I D ;

[0090] H D =(f x,2 , f y,2 , c x,2 , c y,2 );

[0091] Among them, C D I is the coordinate of the spatial point in the depth camera coordinate system; D is the coordinate of the space point in the corresponding pixel coordinate system; H D is the second intrinsic parameter matrix of the depth camera; H D -1 is the inverse matrix of the second internal parameter matrix; f x,2 is the ratio of the focal length to the lateral size of a single pixel in the depth map imaging plane; f y,2 is the ratio of the focal length to the size of a single pixel in the longitudinal direction of the depth map imaging plane; c x,2 is the offset between the x-axis zero point of the pixel coordinate system and the x-axis zero point of the depth camera coordinate system; c y,2 It is the offset between the y-axis zero point of the pixel coordinate system and the y-axis zero point of the depth camera coordinate system.

[0092] Step S313: construct a first camera extrinsic parameter matrix and a second camera extrinsic parameter matrix according to the first camera extrinsic parameters and the second camera extrinsic parameters, respectively, to determine a third transformation relationship and a fourth transformation relationship between the world coordinate system and the first camera coordinate system and the second camera coordinate system, respectively.

[0093] After obtaining the two camera intrinsic matrix (i.e., the first camera intrinsic matrix and the second camera intrinsic matrix), the two camera extrinsic matrix (the first camera extrinsic matrix and the second camera extrinsic matrix) is obtained by Zhang Zhengyou calibration method and other methods. The extrinsic matrix is ​​used to represent the transformation relationship (the third transformation relationship and the fourth transformation relationship) from the camera coordinate system to the world coordinate system. The extrinsic matrix is ​​represented by a rotation matrix R and a translation matrix T:

[0094]

[0095] T=[T x , T y , Tz ] ;

[0096] Among them, φ, and ψ are the rotation angles around the X, Y and Z axes of the world coordinate system, respectively. x , T y and T z They are the translation distances in the X, Y, and Z directions relative to the origin of the world coordinate system.

[0097] The third transformation relationship between the coordinates P of the same spatial point in the world coordinate system and the coordinates of the color camera or black and white camera coordinate system is:

[0098] C C =R C P+T C ;

[0099] Among them, R C and T C The rotation matrix and translation matrix of the color camera or black and white camera respectively.

[0100] The fourth transformation relationship between the coordinates P of the same spatial point in the world coordinate system and the coordinates of the depth camera coordinate system is:

[0101] G D =R D P+T D ;

[0102] Among them, R D and T D The rotation matrix and translation matrix of the depth camera respectively.

[0103] Step S314: derive a transformation relationship between the first camera coordinate system and the second camera coordinate system according to the first transformation relationship, the second transformation relationship, the third transformation relationship and the fourth transformation relationship.

[0104] The transformation relationship between the first camera coordinate system and the second camera coordinate system for the same spatial point is:

[0105]

[0106] Step S32: convert each pixel value in each depth map in the depth map sequence into a corresponding image according to the conversion result, so as to determine a first position coordinate of a pixel point corresponding to each pixel value in each depth map in the corresponding image.

[0107] According to the transformation relationship between the first camera coordinate system and the second camera coordinate system of the same spatial point, the depth map is registered with the color image or black and white image collected at the same time, that is, the pixel coordinate position I of a known spatial point in the depth map is D, according to the following formula, convert to color image or black and white image pixel coordinates I C :

[0108]

[0109] S4. Convert each pixel in each depth image into point cloud data.

[0110] This embodiment converts each pixel in each depth image into point cloud data through coordinate transformation.

[0111] S5. Filter target point clouds for each point cloud in each depth map according to the vertex position coordinate range of each target frame in each image and the first position coordinate to obtain all non-target point clouds in each depth map.

[0112] The point cloud data (x D ,y D ,d) Convert to a labeled image (i.e., color image or black and white image) to obtain the image pixel coordinates (x C ,y C ), where x D and D are the horizontal and vertical coordinates of the pixel in the depth map of the spatial point, d is the depth value of the spatial point, that is, the distance value from the camera; C and C They are respectively the horizontal and vertical coordinates of the pixel of the spatial point in the image (ie, color image or black and white image).

[0113] When x left ≤x C ≤x right , and y up ≤y C ≤y down , then the spatial point is the target point cloud and is skipped, i.e., filtered; if not, the spatial point is a non-target point cloud and is retained.

[0114] At the same time, the center point position coordinates (x, y) of each target frame in the image are used to find the corresponding position in the registered depth map to obtain the actual depth value of the target object.

[0115] S6. Back-project each non-target point cloud in each depth map to determine the positions of obstacles in each occupied map.

[0116] Using the second external parameter matrix of the depth camera, each point cloud after filtering the target is back-projected to the world coordinate system, and the coordinate position of each point cloud after filtering the target in the world coordinate system is obtained. The probability value of the position in the map being occupied at the current moment is recorded as 100%, indicating that an obstacle is detected at this position at the current moment, and other positions are recorded as 0. Thus, the occupation probability value is averaged by the detection results at multiple moments, and the occupation map of the specific target filtered out by the target recognition result can be obtained. The specific implementation process includes:

[0117] Step S61: back-project each non-target point cloud in each depth map to the world coordinate system according to the second camera extrinsic parameter matrix to obtain the position of each non-target point cloud in each depth map in the world coordinate system;

[0118] Step S62: judging, according to the depth value of each non-target point cloud in each depth map, whether the position of each non-target point cloud in each depth map in the world coordinates is occupied at the corresponding position in the occupation map;

[0119] Step S63: Count the number of times each position in the occupation map is occupied to determine the occupation probability of each position in the occupation map, and mark the occupation probability value of each position in the occupation map.

[0120] The present embodiment uses coordinate transformation to realize the registration of each pixel of each depth map in the depth map sequence with each pixel in the corresponding image, and obtains the first position coordinates of each pixel in each depth map corresponding to the pixel in the corresponding image; the point cloud data corresponding to each pixel in each depth image, the center point position coordinates of each target frame in the image, and the first position coordinates of each pixel in the corresponding depth map corresponding to the pixel in the corresponding image are used to filter the target point cloud in each depth map, and obtain all non-target point clouds in each depth map; the position of obstacles in each occupation map is obtained by back-projection of each non-target point cloud in each depth map, so that tracking targets and strike targets are filtered out when generating occupation maps, thereby greatly improving the success rate of trajectory planning and the success rate of task execution under specific tasks; the present embodiment has low computing power consumption and can be conveniently deployed on a micro-sized intelligent unmanned vehicle with limited computing power resources, and can effectively improve the success rate and completion rate of intelligent unmanned vehicles performing tasks such as target tracking and obstacle avoidance and target strike; the present embodiment can be used for generating occupation maps when intelligent unmanned vehicles autonomously perform tracking and obstacle avoidance tasks and obstacle avoidance and strike tasks.

[0121] The above embodiments can be implemented by adopting the technical solutions given in the following embodiments:

[0122] Another embodiment provides an occupancy map generation system based on image layer object filtering, the occupancy map generation system comprising:

[0123] A first acquisition module is used to acquire an image sequence and a corresponding depth map sequence within the same time period;

[0124] A second acquisition module is used to acquire the vertex position coordinate range and the center point position coordinate of each target frame in each image in the image sequence;

[0125] A registration module, configured to register each pixel of each depth map in the depth map sequence with each pixel in the corresponding image by using coordinate transformation, so as to determine a first position coordinate of a corresponding pixel point in each depth map on the corresponding image;

[0126] A conversion module, used to convert each pixel in each depth image into point cloud data;

[0127] A filtering module, configured to filter target point clouds for each point cloud in each depth map according to the vertex position coordinate range of each target frame in each image and the first position coordinate, to obtain all non-target point clouds in each depth map;

[0128] The back-projection module is used to back-project each non-target point cloud in each depth map to determine the position of obstacles in each occupied map.

[0129] Furthermore, the second acquisition module includes:

[0130] A target recognition submodule, used for performing target recognition on each image in the image sequence, so as to draw a target frame at a position area recognized as a target in each image;

[0131] The target frame is the smallest frame surrounding the target area;

[0132] A selection submodule is used to select the maximum horizontal coordinate, the minimum horizontal coordinate, the maximum vertical coordinate and the minimum vertical coordinate from the position coordinates of each pixel point in each target frame in each image as the vertex position coordinate range in the corresponding target frame to calculate the center point position coordinates of each target frame in each image.

[0133] Furthermore, the registration module includes:

[0134] A first conversion submodule, used for converting a first camera coordinate system and a second camera coordinate system used for acquiring the image sequence and the depth map sequence;

[0135] The second conversion submodule is used to convert each pixel value in each depth map in the depth map sequence into a corresponding image according to the conversion result, so as to determine the first position coordinates of the pixel point corresponding to each pixel value in each depth map in the corresponding image.

[0136] Furthermore, the first conversion submodule includes:

[0137] A first acquisition subunit, configured to acquire a first camera intrinsic parameter and a first camera extrinsic parameter for acquiring the image sequence, and a second camera intrinsic parameter and a second camera extrinsic parameter for acquiring the depth map sequence;

[0138] A first construction subunit is used to construct a first camera intrinsic parameter matrix and a second camera intrinsic parameter matrix according to the first camera intrinsic parameter and the second camera intrinsic parameter, respectively, so as to determine a first transformation relationship and a second transformation relationship between a pixel coordinate system and the first camera coordinate system and the second camera coordinate system, respectively;

[0139] A second construction subunit is used to construct a first camera extrinsic parameter matrix and a second camera extrinsic parameter matrix according to the first camera extrinsic parameter and the second camera extrinsic parameter, respectively, so as to determine a third transformation relationship and a fourth transformation relationship between a world coordinate system and the first camera coordinate system and the second camera coordinate system, respectively;

[0140] The derivation subunit is used to derive the transformation relationship between the first camera coordinate system and the second camera coordinate system according to the first transformation relationship, the second transformation relationship, the third transformation relationship and the fourth transformation relationship.

[0141] Furthermore, the back projection module includes:

[0142] A back-projection submodule, configured to back-project each non-target point cloud in each depth map to the world coordinate system according to the second camera extrinsic parameter matrix, to obtain a position of each non-target point cloud in each depth map in the world coordinate system;

[0143] A judgment submodule, used to judge whether the position of each non-target point cloud in each depth map in the world coordinates is occupied in the corresponding position in the occupation map according to the depth value of each non-target point cloud in each depth map;

[0144] The statistical submodule is used to count the number of times each position in the occupation map is occupied to determine the occupation probability of each position in the occupation map, and mark the occupation probability value of each position in the occupation map.

[0145] The principles, formulas and parameter definitions involved in the above embodiments are all applicable and will not be described in detail here.

[0146] Please note that the technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not 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. The above embodiments only express several implementation methods of the present application, and their descriptions 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 ordinary technicians in this field, without departing from the concept of the present application, several variations and improvements can be made, which all belong to the scope of protection of the present application. Therefore, the scope of protection of the patent in this application shall be based on the attached claims.

Claims

1. A method for generating occupancy maps based on image layer object filtering, It is characterized in that The occupation map generation method comprises the following steps: Step S1, obtaining an image sequence and a corresponding depth map sequence within the same time period; Step S2, obtaining the vertex position coordinate range and center point position coordinate of each target frame in each image in the image sequence; Step S3: using coordinate transformation, registering each pixel of each depth map in the depth map sequence with each pixel in the corresponding image, so as to determine the first position coordinates of each pixel point in each depth map corresponding to the pixel point in the corresponding image; Step S4, converting each pixel in each depth image into point cloud data; Step S5, performing target point cloud filtering on each point cloud in each depth map according to the vertex position coordinate range of each target frame in each image and the first position coordinate, to obtain all non-target point clouds in each depth map; Step S6: back-project each non-target point cloud in each depth map to determine the position of obstacles in each occupied map.

2. The occupation map generation method according to claim 1, It is characterized in that The specific implementation process of step S2 includes: Step S21, performing target recognition on each image in the image sequence, so as to draw a target frame at a position area recognized as a target in each image; The target frame is the smallest frame surrounding the target area; Step S22, selecting the maximum horizontal coordinate, the minimum horizontal coordinate, the maximum vertical coordinate and the minimum vertical coordinate from the position coordinates of each pixel point in each target frame in each image as the vertex position coordinate range in the corresponding target frame to calculate the center point position coordinates of each target frame in each image.

3. The occupation map generation method according to claim 2, It is characterized in that The specific implementation process of step S3 includes: Step S31, converting a first camera coordinate system and a second camera coordinate system used to acquire the image sequence and the depth map sequence; Step S32: convert each pixel value in each depth map in the depth map sequence into a corresponding image according to the conversion result, so as to determine a first position coordinate of a pixel point corresponding to each pixel value in each depth map in the corresponding image.

4. The occupation map generation method according to claim 3, It is characterized in that The specific implementation process of step S31 includes: Step S311, acquiring a first camera intrinsic parameter and a first camera extrinsic parameter for acquiring the image sequence, and a second camera intrinsic parameter and a second camera extrinsic parameter for acquiring the depth map sequence; Step S312: constructing a first camera intrinsic parameter matrix and a second camera intrinsic parameter matrix according to the first camera intrinsic parameter and the second camera intrinsic parameter, respectively, to determine a first transformation relationship and a second transformation relationship between a pixel coordinate system and the first camera coordinate system and the second camera coordinate system, respectively; Step S313: constructing a first camera extrinsic parameter matrix and a second camera extrinsic parameter matrix according to the first camera extrinsic parameter and the second camera extrinsic parameter, respectively, to determine a third transformation relationship and a fourth transformation relationship between a world coordinate system and the first camera coordinate system and the second camera coordinate system, respectively; Step S314: derive a transformation relationship between the first camera coordinate system and the second camera coordinate system according to the first transformation relationship, the second transformation relationship, the third transformation relationship and the fourth transformation relationship.

5. The occupation map generation method according to claim 4, It is characterized in that The specific implementation process of step S6 includes: Step S61: back-project each non-target point cloud in each depth map to the world coordinate system according to the second camera extrinsic parameter matrix to obtain the position of each non-target point cloud in each depth map in the world coordinate system; Step S62: judging, according to the depth value of each non-target point cloud in each depth map, whether the position of each non-target point cloud in each depth map in the world coordinates is occupied at the corresponding position in the occupation map; Step S63: Count the number of times each position in the occupation map is occupied to determine the occupation probability of each position in the occupation map, and mark the occupation probability value of each position in the occupation map.

6. An occupancy map generation system based on image layer object filtering, It is characterized in that The occupation map generation system comprises: A first acquisition module is used to acquire an image sequence and a corresponding depth map sequence within the same time period; A second acquisition module is used to acquire the vertex position coordinate range and the center point position coordinate of each target frame in each image in the image sequence; A registration module, configured to register each pixel of each depth map in the depth map sequence with each pixel in the corresponding image by using coordinate transformation, so as to determine a first position coordinate of a corresponding pixel point in each depth map on the corresponding image; A conversion module, used to convert each pixel in each depth image into point cloud data; A filtering module, configured to filter target point clouds for each point cloud in each depth map according to the vertex position coordinate range of each target frame in each image and the first position coordinate, to obtain all non-target point clouds in each depth map; The back-projection module is used to back-project each non-target point cloud in each depth map to determine the position of obstacles in each occupied map.

7. The occupation map generation system according to claim 6, It is characterized in that The second acquisition module includes: A target recognition submodule, used for performing target recognition on each image in the image sequence, so as to draw a target frame at a position area recognized as a target in each image; The target frame is the smallest frame surrounding the target area; A selection submodule is used to select the maximum horizontal coordinate, the minimum horizontal coordinate, the maximum vertical coordinate and the minimum vertical coordinate from the position coordinates of each pixel point in each target frame in each image as the vertex position coordinate range in the corresponding target frame to calculate the center point position coordinates of each target frame in each image.

8. The occupation map generation system according to claim 7, It is characterized in that The registration module comprises: A first conversion submodule, used for converting a first camera coordinate system and a second camera coordinate system used for acquiring the image sequence and the depth map sequence; The second conversion submodule is used to convert each pixel value in each depth map in the depth map sequence into a corresponding image according to the conversion result, so as to determine the first position coordinates of the pixel point corresponding to each pixel value in each depth map in the corresponding image.

9. The occupation map generation system according to claim 8, It is characterized in that The first conversion submodule comprises: A first acquisition subunit, configured to acquire a first camera intrinsic parameter and a first camera extrinsic parameter for acquiring the image sequence, and a second camera intrinsic parameter and a second camera extrinsic parameter for acquiring the depth map sequence; A first construction subunit is used to construct a first camera intrinsic parameter matrix and a second camera intrinsic parameter matrix according to the first camera intrinsic parameter and the second camera intrinsic parameter, respectively, so as to determine a first transformation relationship and a second transformation relationship between a pixel coordinate system and the first camera coordinate system and the second camera coordinate system, respectively; A second construction subunit is used to construct a first camera extrinsic parameter matrix and a second camera extrinsic parameter matrix according to the first camera extrinsic parameter and the second camera extrinsic parameter, respectively, so as to determine a third transformation relationship and a fourth transformation relationship between a world coordinate system and the first camera coordinate system and the second camera coordinate system, respectively; The derivation subunit is used to derive the transformation relationship between the first camera coordinate system and the second camera coordinate system according to the first transformation relationship, the second transformation relationship, the third transformation relationship and the fourth transformation relationship.

10. The occupation map generation system according to claim 9, It is characterized in that The back projection module comprises: A back-projection submodule, configured to back-project each non-target point cloud in each depth map to the world coordinate system according to the second camera extrinsic parameter matrix, to obtain a position of each non-target point cloud in each depth map in the world coordinate system; A judgment submodule, used to judge whether the position of each non-target point cloud in each depth map in the world coordinates is occupied in the corresponding position in the occupation map according to the depth value of each non-target point cloud in each depth map; The statistical submodule is used to count the number of times each position in the occupation map is occupied to determine the occupation probability of each position in the occupation map, and mark the occupation probability value of each position in the occupation map.

Citation Information

Patent Citations

  • Method and device for generating occupancy grid map

    CN113093221A