WO2021056501A1 - Feature point extraction method, movable platform and storage medium - Google Patents

Feature point extraction method, movable platform and storage medium Download PDF

Info

Publication number
WO2021056501A1
WO2021056501A1 PCT/CN2019/108856 CN2019108856W WO2021056501A1 WO 2021056501 A1 WO2021056501 A1 WO 2021056501A1 CN 2019108856 W CN2019108856 W CN 2019108856W WO 2021056501 A1 WO2021056501 A1 WO 2021056501A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
current frame
feature points
feature point
frame image
Prior art date
Application number
PCT/CN2019/108856
Other languages
French (fr)
Chinese (zh)
Inventor
高文良
周游
叶长春
Original Assignee
深圳市大疆创新科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to PCT/CN2019/108856 priority Critical patent/WO2021056501A1/en
Priority to CN201980033830.5A priority patent/CN112154479A/en
Publication of WO2021056501A1 publication Critical patent/WO2021056501A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/20Analysis of motion
    • G06T7/246Analysis of motion using feature-based methods, e.g. the tracking of corners or segments
    • G06T7/248Analysis of motion using feature-based methods, e.g. the tracking of corners or segments involving reference images or patches
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/40Scenes; Scene-specific elements in video content
    • G06V20/46Extracting features or characteristics from the video content, e.g. video fingerprints, representative shots or key frames

Definitions

  • This application relates to the field of computer vision technology, and in particular to a method for extracting feature points, a removable platform and a storage medium.
  • the present application provides a method, a removable platform, and a storage medium for extracting feature points.
  • the present application provides a method for extracting feature points, which is applied to a movable platform including a camera, and includes:
  • this application provides a movable platform, including: a camera, a processor, and a memory;
  • the photographing device is used for photographing images
  • the memory is used to store a computer program
  • the processor is used to execute the computer program and when executing the computer program, implement the following steps:
  • the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor realizes the extraction of feature points as described above Methods.
  • the embodiment of the application provides a method for extracting feature points, a movable platform, and a storage medium.
  • the first feature point in the previous frame image of the current frame image is tracked in the current frame image to obtain the current frame image.
  • the number of points determines whether to extract new feature points in the current frame image, instead of directly enumerating all the pixels of the current frame image, repeating the calculation, or directly enumerating a fixed number of pixels, by comparing the previous frame image According to the tracking results, it can avoid repeated selection of feature points in the same area, which can reduce the amount of calculation and memory resources; when the number of successfully tracked second feature points meets the preset number threshold, it is not necessary Extracting new feature points can avoid repetition, a large number of calculations, and is fast; when the number of successfully tracked second feature
  • FIG. 1 is a schematic flowchart of an embodiment of a method for extracting feature points according to the present application
  • FIG. 2 is a schematic flowchart of another embodiment of the method for extracting feature points according to the present application.
  • FIG. 3 is a schematic flowchart of another embodiment of the method for extracting feature points according to the present application.
  • FIG. 4 is a schematic diagram of the position prediction of the first feature point in the method for extracting feature points according to the present application
  • FIG. 5 is a schematic diagram of the position tracking of the first feature point in the method for extracting feature points according to the present application
  • FIG. 6 is a schematic flowchart of another embodiment of the method for extracting feature points according to the present application.
  • FIG. 7 is a schematic flowchart of another embodiment of the method for extracting feature points according to the present application.
  • FIG. 8 is a schematic diagram of the current frame image after rasterization processing in the first application of the method for extracting feature points of the present application;
  • FIG. 9 is a schematic diagram of the actual positions of the second feature points that are successfully tracked in the multiple raster images of FIG. 8 and the raster images that do not need to extract new feature points;
  • FIG. 10 is a schematic diagram of the multiple raster images of FIG. 8 divided into a central area and an area outside the central area;
  • FIG. 11 is a schematic diagram of a raster image corresponding to a second feature point successfully tracked in the multiple raster images of FIG. 9 and subsequent extraction of new feature points;
  • Fig. 12 is a schematic structural diagram of an embodiment of a movable platform of the present application.
  • the first feature point in the previous frame image of the current frame image is tracked in the current frame image to obtain the second feature point successfully tracked in the current image frame; the determination is made according to the number of second feature points Whether to extract new feature points in the current frame image; since the first feature point is tracked in the previous frame image, the number of second feature points that have been successfully tracked is used to determine whether to extract new feature points in the current frame image instead of Directly enumerate all pixels of the current frame image, repeat the calculation, or directly enumerate a fixed number of pixels, by tracking the first feature point in the previous frame image, it can avoid being in the same area according to the tracking result
  • the internal repetitive selection of feature points can reduce the amount of calculation and memory resources; when the number of successfully tracked second feature points meets the preset number threshold, no new feature points can be extracted, which can avoid repetition, a large number of calculations, and is fast; When the number of successfully tracked second feature points is less than the preset number threshold, only the remaining number of new feature points can be extracted to the
  • the movable platform refers to various platforms that can move automatically or under controlled conditions, such as PTZ (for example, PTZ camera, etc.), unmanned aerial vehicles , Vehicles, unmanned vehicles, ground robots, etc.
  • PTZ for example, PTZ camera, etc.
  • unmanned aerial vehicles Vehicles
  • unmanned vehicles ground robots, etc.
  • Fig. 1 is a schematic flowchart of an embodiment of a method for extracting feature points according to the present application.
  • the method according to an embodiment of the present application is applied to a movable platform including a camera, and the method includes:
  • Step S101 Acquire a current frame image taken by the photographing device.
  • Step S102 Track the first feature point in the previous frame image of the current frame image in the current frame image to obtain the second feature point successfully tracked in the current frame image.
  • the first feature point tracking refers to searching for the first feature point (ie target feature point) selected in the previous frame image in the next current frame image (ie real-time frame image)
  • the best position of the point, where the first feature point selected in the last frame of image can be obtained by the method of automatic target detection and recognition, or it can be selected by the method of manual participation.
  • the first feature point tracking uses a feature point tracking algorithm. Tracking based on feature points mainly includes two aspects: feature point extraction and feature point matching.
  • the first feature point selected in the last frame of image mainly includes color, texture, edge, block feature, optical flow feature, perimeter, area, centroid, corner point, etc.
  • the purpose of extracting the first feature point is to match the first feature point between frames and track the first feature point with the best match.
  • Common tracking algorithms based on feature point matching include: tracking based on binary target image matching, tracking based on edge feature matching or corner feature matching, tracking based on target gray feature matching, tracking based on target color feature matching, etc. .
  • the KLT tracking algorithm is a widely used tracking algorithm based on feature points. Because the feature points are distributed on the entire target, even if a part is occluded, another part of the feature points can still be tracked. This is also the advantage of the KLT tracking algorithm. .
  • the advantage of the tracking algorithm based on feature points is that it is not sensitive to changes in the scale, deformation, and brightness of the moving target. Even if a certain part of the target is occluded, as long as a part of the feature can be seen, it can be completed. Tracking task; In addition, this method is used in conjunction with Kalman filter, and it also has a good tracking effect.
  • Step S103 Determine the number of second feature points.
  • Step S104 Determine whether to extract new feature points in the current frame image according to the number of second feature points.
  • the first feature point in the previous frame image of the current frame image is tracked in the current frame image to obtain the second feature point successfully tracked in the current image frame; the determination is made according to the number of second feature points Whether to extract new feature points in the current frame image; since the first feature point is tracked in the previous frame image, the number of second feature points that have been successfully tracked is used to determine whether to extract new feature points in the current frame image instead of Directly enumerate all pixels of the current frame image, repeat the calculation, or directly enumerate a fixed number of pixels, by tracking the first feature point in the previous frame image, it can avoid being in the same area according to the tracking result
  • the internal repetitive selection of feature points can reduce the amount of calculation and memory resources; when the number of successfully tracked second feature points meets the preset number threshold, no new feature points can be extracted, which can avoid repetition, a large number of calculations, and is fast; When the number of successfully tracked second feature points is less than the preset number threshold, only the remaining number of new feature points can be extracted to the
  • step S102 The specific details of the tracking of the first feature point in step S102 are described in detail below.
  • step S102 may include: sub-step S1021 and sub-step S1022, as shown in FIG. 2.
  • Sub-step S1021 Determine, in the current frame of image, the tracking area of the first feature point in the previous frame of image in the current frame of image.
  • Sub-step S1022 Track the first feature point in the previous frame of image within the tracking area in the current frame of image.
  • the tracking starting point is the first feature point itself of the previous frame of image
  • the tracking area is usually relatively large.
  • the tracking area uses the first feature point as the origin, and a circular area with R (the size of R is larger) as the radius as the tracking area.
  • R the size of R
  • the relative moving speed of the camera the difference between the shooting time of the previous frame of image and the shooting time of the current frame of image, the size of R can be roughly estimated.
  • sub-step S1021 which may also include: sub-step S1021a and sub-step S1021b, As shown in Figure 3.
  • Sub-step S1021a predict the position of the spatial point corresponding to the first feature point in the current frame of image.
  • the black circle indicates the position of the first feature point in the previous frame
  • the gray circle indicates the predicted position of the first feature point in the current frame
  • the gray arrow indicates the prediction process of the first feature point.
  • Sub-step S1021b Determine the tracking area of the first feature point in the previous frame of image in the current frame of image according to the predicted position.
  • the black dot A represents the position of the first feature point in the previous frame of image
  • the gray dot B represents the predicted position of the first feature point in the current frame of image
  • the gray and black dot C represents the first feature point.
  • the gray arrow 1 represents the prediction process of the first feature point
  • the gray arrow 2 represents the tracking process of the first feature point
  • three The large circles represent the tracking area when the feature point is tracked by the traditional method, and the three small circles represent the tracking area determined according to the predicted position of the first feature point.
  • the tracking area can be greatly reduced, so that the tracking speed can be further improved.
  • the sub-step S1021a may specifically include: predicting the position of the spatial point corresponding to the first feature point in the current frame of the image according to the pose information of the last frame of image captured by the camera and the position of the spatial point corresponding to the first feature point .
  • This embodiment uses a triangulation measurement algorithm. For the feature points that have been calculated and three-dimensionally reconstructed in the previous frame, the position of the spatial point corresponding to the first feature point (ie, three-dimensional coordinates) has been calculated through the triangulation algorithm; for the first frame that has just been extracted but not three-dimensionally reconstructed For a feature point (newly extracted feature point), the average depth of the first feature point in the previous frame is used as a rough depth value to predict the location of the corresponding spatial point (ie, three-dimensional coordinates).
  • the pose information of the last frame of the image taken by the camera includes the rotational motion information and translation motion information of the last frame of the image taken by the camera.
  • the pose information of the last frame of the image taken by the camera is known information that has been estimated. According to the posture information of the last frame of the image taken by the camera and the movement information of the movable platform equipped with the camera, it can be estimated that the camera is taking the current frame of image posture information, and further based on the estimated camera’s taking the current frame of image
  • the pose information and the position of the space point corresponding to the first feature point can predict the position of the space point corresponding to the first feature point in the current frame image.
  • p i ⁇ (RP i + t), where, ⁇ representing the projector function, P i is the i-dimensional coordinates of first feature points corresponding to spatial point, p i is the spatial point corresponding to a first feature points on the current frame image
  • the pixel coordinates of R and t represent the rotation and translation motion information of the current frame image taken by the camera.
  • step S104 may further include: sub-step S1041, sub-step S1042, and sub-step S1043, as shown in FIG. 6 shown.
  • Sub-step S1041 Determine whether the number of second feature points is greater than or equal to a first preset number threshold.
  • Sub-step S1042 if the number of second feature points is greater than or equal to the first preset number threshold, it is determined not to extract new feature points in the current frame image.
  • Sub-step S1043 If the number of second feature points is less than the first preset number threshold, it is determined to extract new feature points in the current frame of image.
  • the first preset number threshold is determined according to specific applications and specific requirements. If the number of second feature points that are successfully tracked is relatively large and meets the requirements, and reaches the first preset number threshold and above, there is no need to extract new feature points in the current frame of image. If the number of second feature points that are successfully tracked is relatively small, does not meet the requirements, and does not reach the first preset number threshold, new feature points need to be extracted from the current frame image.
  • the first preset number threshold is related to the number of feature points extracted in the first frame, and the first preset number threshold is less than or equal to the number of feature points extracted in the first frame.
  • the number of feature points extracted from the first frame of image is 120, and the first preset number threshold is set to 100.
  • the number of the first feature points of the previous frame image is 110. If the number of the second feature points that are successfully tracked in the current frame image is 100, it is considered that the number of points is sufficient, then the current frame image does not need to extract new feature points; if the current frame image The number of second feature points that are successfully tracked is 90, so new feature points need to be extracted from the current frame of image.
  • the number of successfully tracked second feature points meets or exceeds the first preset number threshold, no new feature points may be extracted.
  • the number of successfully tracked second feature points is less than the first preset number threshold, Then extract new feature points; in this way, repetition, a large number of calculations can be avoided, and the speed is fast.
  • the number of new feature points extracted in the current frame image is determined according to the difference between the first preset number threshold and the number of second feature points. In some embodiments, the number of new feature points extracted in the current frame of image is the difference between the first preset number threshold and the number of second feature points. In this way, it is possible to reduce the extraction of new feature points and reduce the memory occupation, so there is no need to provide a large memory space and the speed is fast.
  • the number of feature points extracted from the first frame of image is 120, and the first preset number threshold is set to 100.
  • the number of first feature points in the previous frame of image is 110. If the number of second feature points that are successfully tracked in the current frame image is 90, then new feature points need to be extracted in the current frame of image, and the number of new feature points extracted can be 10 There can be more than ten. In general, the number of new feature points to be extracted can be far less than 100, which can greatly reduce the number of new feature points to be extracted and reduce the memory usage. Therefore, there is no need to provide a large memory space and the speed is fast.
  • the current frame image is divided into multiple raster images.
  • the method may further include:
  • Step S201 Perform rasterization processing on the current frame image according to the first preset size to obtain multiple raster images. For example: as shown in Figure 8, the current frame image is rasterized to obtain 20 raster images.
  • the first preset size is determined according to specific applications and specific requirements. For example: it is determined according to the number of feature points extracted from the first frame of image; or it is determined according to the first preset number threshold, and so on.
  • Dividing the current frame image into multiple raster images helps reduce the tracking range of the first feature point in the previous frame image in the current frame image, and helps locate the second feature point that has been successfully tracked. The most important thing is to provide technical support to ensure the uniform distribution of feature points.
  • Step S202 Determine a target raster image from a plurality of raster images, where the target raster image does not include the second feature point. According to the tracking result of step S102, the target raster image that does not include the second feature point can be determined from the plurality of raster images.
  • Step S203 When it is determined that a new feature point is to be extracted from the current frame image, the new feature point is extracted from the target raster image, wherein at most one new feature point is extracted from the target raster image.
  • the new feature point can be extracted from the target raster image.
  • a good sparse feature point set should be uniformly distributed, and each target raster image can extract at most one new feature point as a representative to ensure that the feature point distribution is basically uniform.
  • the small dots in the left picture indicate the actual position of the second feature point that has been successfully tracked in the current frame of the image
  • the black grid in the right picture indicates that the grid does not require new feature point extraction.
  • the problem of determining where the new feature points are extracted can avoid repeated selection of feature points in the same area, and ensure that the feature point distribution is basically uniform.
  • the method may further include: determining a central area in the current frame of the image according to a second preset size, wherein the target raster image includes the first located in the central area.
  • step S203 extracting new feature points from the target raster image may specifically include: extracting new feature points from the first target raster image.
  • the quality of the feature points at the edge of the image will be low due to possible motion, camera distortion, and other reasons.
  • the current frame image is divided into the central area A area and the B area outside the central area according to the second preset size; the right image, the area in the A area
  • the first target raster image includes: A1 to A6, and the second target raster image in the B area includes: B1 to B14.
  • the probability of new feature points with better quality that can be used in the area A is higher, so the new feature points in the first target raster image from A1 to A6 in the area A are preferentially extracted.
  • the method for determining the second preset size may further include:
  • Step S301 Obtain status information of the movable platform, where the status information of the movable platform includes the motion status parameters of the movable platform.
  • the motion state parameter includes one or more of the velocity, acceleration, angular velocity, angular acceleration of the movable platform, angular velocity of the photographing device, and angular acceleration of the photographing device.
  • Step S302 Determine a second preset size according to the motion state parameter of the movable platform. Wherein, the second preset size is negatively related to the motion state parameter.
  • the size of the central area where new feature points are preferentially extracted can be flexibly adjusted according to specific actual conditions.
  • step S203 extracts new feature points from the first target raster image, which may specifically include: sub-step S2031 and sub-step S2032.
  • Sub-step S2031 respectively detect the pixel points in different first target raster images according to a preset cycle sequence to determine whether the pixel point is a candidate feature point.
  • Sub-step S2032 Determine the candidate feature point with the highest quality parameter of the candidate feature point in the first target raster image including the candidate feature point and higher than the preset feature point quality threshold as the new feature point of the first target raster image.
  • each pixel in the first target raster image is given an opportunity to extract new feature points, so as to make the feature points evenly distributed as much as possible.
  • the first condition for extracting new feature points is: the pixel point meets the requirements of candidate feature points after detection; if the pixel points in the first target raster image do not meet the requirements of candidate feature points after detection, then the second No new feature points are extracted from a target raster image.
  • the specific methods and requirements for detecting pixels are not limited in the embodiment of the present application. For example: to detect the color of the pixel, its location, whether it is a corner, whether it is an intersection, and so on.
  • the second condition for being able to be extracted as a new feature point is: the candidate feature in the first target raster image
  • the quality parameter of the point is the highest and higher than the preset feature point quality threshold, and the candidate feature point in the first target raster image that meets the second condition can be used as the new feature point of the first target raster image.
  • Harris can be used to evaluate the quality of feature points.
  • the method further includes: when it is determined that the second preset number of candidate feature points are detected, no longer detecting the pixels in the first target raster image . That is, in this embodiment, not all the pixels in the first target raster image are searched, as long as the number of detected candidate feature points reaches the second preset number, the pixel points in the first target raster image are no longer searched. Perform testing.
  • step S203 extracts new feature points from the first target raster image, and It may include: determining whether the number of new feature points extracted from the first target raster image is greater than or equal to a third preset number threshold; if not, extracting new feature points from the second target raster image.
  • the third preset number threshold is determined according to the difference between the first preset number threshold and the number of second feature points. In some embodiments, the third preset number threshold is the difference between the first preset number threshold and the number of second feature points.
  • Figure 12 is a schematic structural diagram of an embodiment of the mobile platform of the present application. It should be noted that the mobile platform of this embodiment can execute the steps in the above-mentioned method for extracting feature points, and a detailed description of the relevant content, Please refer to the part of the method of extracting feature points above, which will not be repeated here.
  • the mobile platform 10 includes: a photographing device 13, a memory 11 and a processor 12; the photographing device 13, the memory 11 and the processor 12 are connected by a bus 14.
  • the processor 12 may be a micro control unit, a central processing unit, or a digital signal processor, and so on.
  • the memory 11 may be a Flash chip, a read-only memory, a magnetic disk, an optical disk, a U disk, or a mobile hard disk, etc.
  • the photographing device 13 is used to photograph images; the memory 11 is used to store a computer program; the processor 12 is used to execute the computer program and when the computer program is executed, the following steps are implemented:
  • the first feature point in the previous frame image of the current frame image is tracked in the current frame image to obtain the second feature point successfully tracked in the current image frame; the determination is made according to the number of second feature points Whether to extract new feature points in the current frame image; since the first feature point is tracked in the previous frame image, the number of second feature points that have been successfully tracked is used to determine whether to extract new feature points in the current frame image instead of Directly enumerate all pixels of the current frame image, repeat the calculation, or directly enumerate a fixed number of pixels, by tracking the first feature point in the previous frame image, it can avoid being in the same area according to the tracking result
  • the internal repetitive selection of feature points can reduce the amount of calculation and memory resources; when the number of successfully tracked second feature points meets the preset number threshold, no new feature points can be extracted, which can avoid repetition, a large number of calculations, and is fast; When the number of successfully tracked second feature points is less than the preset number threshold, only the remaining number of new feature points can be extracted to the
  • the processor executes the computer program, the following steps are implemented: if the number of second feature points is greater than or equal to the first preset number threshold, it is determined not to extract new feature points in the current frame image; otherwise, it is determined to be Extract new feature points from the current frame of image.
  • the number of new feature points extracted in the current frame image is determined according to the difference between the first preset number threshold and the number of second feature points.
  • the processor when the processor executes the computer program, it implements the following steps: rasterize the current frame image according to the first preset size to obtain multiple raster images; determine the target raster image from the multiple raster images, Among them, the target raster image does not include the second feature point; when it is determined to extract a new feature point from the current frame image, the new feature point is extracted from the target raster image, where at most one new feature point is extracted from the target raster image .
  • the processor executes the computer program, the following steps are implemented: determine the central area in the current frame image according to the second preset size, wherein the target raster image includes a first target raster image located in the central area and a first target raster image located in the center. The second target raster image outside the area; new feature points are extracted from the first target raster image.
  • the processor executes the computer program, the following steps are implemented: according to a preset loop sequence, the pixels in different first target raster images are respectively detected to determine whether the pixel is a candidate feature point; the candidate will be included In the first target raster image of the characteristic points, the candidate characteristic point with the highest quality parameter of the candidate characteristic point and higher than the preset characteristic point quality threshold is determined as the new characteristic point of the target raster image.
  • the processor executes the computer program, the following steps are implemented: when it is determined that the second preset number of candidate feature points are detected, no more detection is performed on the pixel points in the first target raster image.
  • the processor when the processor executes the computer program, it implements the following steps: determining whether the number of new feature points extracted from the first target raster image is greater than or equal to the third preset number threshold; if not, in the second target raster image Extract new feature points from the image.
  • the third preset number threshold is determined according to the difference between the first preset number threshold and the number of second feature points.
  • the processor when the processor executes the computer program, it implements the following steps: acquiring state information of the movable platform, where the state information of the movable platform includes the movement state parameters of the movable platform; and determining the second step according to the movement state parameters of the movable platform Preset size.
  • the motion state parameters include one or more of the speed, acceleration, angular velocity, angular acceleration of the movable platform, the angular velocity of the photographing device, and the angular acceleration of the photographing device.
  • the second preset size is negatively related to the motion state parameter.
  • the processor executes the computer program, it implements the following steps: in the current frame image, determine the tracking area of the first feature point in the previous frame image in the current frame image; align it in the tracking area in the current frame image The first feature point in a frame of image is tracked.
  • the processor when the processor executes the computer program, it implements the following steps: predict the position of the spatial point corresponding to the first feature point in the current frame image; determine the first feature point in the previous frame image according to the predicted position in the current frame image Tracking area in.
  • the processor executes the computer program, the following steps are implemented: according to the pose information of the last frame of the image taken by the camera and the position of the space point corresponding to the first feature point, predict that the space point corresponding to the first feature point is in the current frame The position in the image.
  • the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program.
  • the processor implements the method for extracting feature points as described in any of the above items.
  • the relevant content please refer to the above method of extracting feature points, which will not be repeated here.
  • the computer-readable storage medium may be an internal storage unit of any of the above-mentioned removable platforms, such as a hard disk or memory of the removable platform.
  • the computer-readable storage medium may also be an external storage device of the removable platform, such as a plug-in hard disk, a smart memory card, a secure digital card, a flash memory card, etc., equipped on the removable platform.
  • the first feature point in the previous frame image of the current frame image is tracked in the current frame image to obtain the second feature point successfully tracked in the current image frame; the determination is made according to the number of second feature points Whether to extract new feature points in the current frame image; since the first feature point is tracked in the previous frame image, the number of second feature points that have been successfully tracked is used to determine whether to extract new feature points in the current frame image instead of Directly enumerate all pixels of the current frame image, repeat the calculation, or directly enumerate a fixed number of pixels, by tracking the first feature point in the previous frame image, it can avoid being in the same area according to the tracking result
  • the internal repetitive selection of feature points can reduce the amount of calculation and memory resources; when the number of successfully tracked second feature points meets the preset number threshold, no new feature points can be extracted, which can avoid repetition, a large number of calculations, and is fast; When the number of successfully tracked second feature points is less than the preset number threshold, only the remaining number of new feature points can be extracted to the

Abstract

A feature point extraction method, a movable platform and a storage medium. The method comprises: acquiring the current frame image photographed by a photographing device (S101); tracking, in the current frame image, a first feature point in a previous frame image so as to acquire second feature points successfully tracked in the current image frame (S102); determining the number of the second feature points (S103); and determining whether to extract a new feature point from the current frame image according to the number of the second feature points (S104).

Description

提取特征点的方法、可移动平台及存储介质Method for extracting feature points, movable platform and storage medium 技术领域Technical field
本申请涉及计算机视觉技术领域,尤其涉及一种提取特征点的方法、可移动平台及存储介质。This application relates to the field of computer vision technology, and in particular to a method for extracting feature points, a removable platform and a storage medium.
背景技术Background technique
目前在机器视觉领域,图像中的特征点常用于目标的识别和追踪。传统的特征点提取方法,需要通过特定的特征点算子对整张图片的所有像素进行枚举,重复计算的操作较多,计算量大。同时,对于强纹理的环境,枚举三十万个像素时,可能会产生数十万个特征点,需要提供较大的内存。At present, in the field of machine vision, feature points in images are often used for target recognition and tracking. The traditional feature point extraction method needs to enumerate all the pixels of the entire picture through a specific feature point operator, which requires a lot of repeated calculation operations and a large amount of calculation. At the same time, for a strong texture environment, when enumerating 300,000 pixels, hundreds of thousands of feature points may be generated, which requires a large amount of memory.
发明内容Summary of the invention
基于此,本申请提供一种提取特征点的方法、可移动平台及存储介质。Based on this, the present application provides a method, a removable platform, and a storage medium for extracting feature points.
第一方面,本申请提供了一种提取特征点的方法,应用于包括拍摄装置的可移动平台,包括:In the first aspect, the present application provides a method for extracting feature points, which is applied to a movable platform including a camera, and includes:
获取所述拍摄装置拍摄的当前帧图像;Acquiring the current frame image taken by the photographing device;
在当前帧图像中对所述当前帧图像的上一帧图像中的第一特征点进行跟踪以获取所述当前图像帧中跟踪成功的第二特征点;Tracking the first feature point in the previous frame image of the current frame image in the current frame image to obtain the second feature point that is successfully tracked in the current image frame;
确定所述第二特征点的数目;Determining the number of the second feature points;
根据所述第二特征点的数目确定是否要在所述当前帧图像中提取新特征点。Determine whether to extract new feature points in the current frame image according to the number of the second feature points.
第二方面,本申请提供了一种可移动平台,包括:拍摄装置、处理器和存储器;In the second aspect, this application provides a movable platform, including: a camera, a processor, and a memory;
所述拍摄装置用于拍摄图像;The photographing device is used for photographing images;
所述存储器用于存储计算机程序;The memory is used to store a computer program;
所述处理器用于执行所述计算机程序并在执行所述计算机程序时,实现如下步骤:The processor is used to execute the computer program and when executing the computer program, implement the following steps:
获取所述拍摄装置拍摄的当前帧图像;Acquiring the current frame image taken by the photographing device;
在当前帧图像中对所述当前帧图像的上一帧图像中的第一特征点进行跟踪以获取所述当前图像帧中跟踪成功的第二特征点;Tracking the first feature point in the previous frame image of the current frame image in the current frame image to obtain the second feature point that is successfully tracked in the current image frame;
确定所述第二特征点的数目;Determining the number of the second feature points;
根据所述第二特征点的数目确定是否要在所述当前帧图像中提取新特征点。Determine whether to extract new feature points in the current frame image according to the number of the second feature points.
第三方面,本申请提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时使所述处理器实现如上所述的提取特征点的方法。In a third aspect, the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor realizes the extraction of feature points as described above Methods.
本申请实施例提供了一种提取特征点的方法、可移动平台及存储介质,在当前帧图像中对当前帧图像的上一帧图像中的第一特征点进行跟踪,以获取当前图像帧中跟踪成功的第二特征点;根据第二特征点的数目,确定是否要在当前帧图像中提取新特征点;由于在前帧图像中对第一特征点进行跟踪,根据跟踪成功的第二特征点的数目确定是否在当前帧图像中提取新特征点,而不是直接对当前帧图像的所有像素点进行枚举,重复计算,或者直接枚举固定数量的像素点,通过对上一帧图像中的第一特征点进行跟踪,根据跟踪结果能够避免在同一块区域内重复选取特征点,能够减少计算量和内存资源;当跟踪成功的第二特征点的数目满足预设数目阈值时,可以不提取新特征点,能够避免重复、大量的计算,且速度快;当跟踪成功的第二特征点的数目小于预设数目阈值时,可以只提取剩余数目的新特征点至预设数目阈值,能够减少提取新特征点,减少占用内存,因此不需要提供较大的内存空间,且速度快。The embodiment of the application provides a method for extracting feature points, a movable platform, and a storage medium. The first feature point in the previous frame image of the current frame image is tracked in the current frame image to obtain the current frame image. The second feature point that is successfully tracked; according to the number of second feature points, determine whether to extract new feature points in the current frame image; because the first feature point is tracked in the previous frame image, according to the second feature point that is successfully tracked The number of points determines whether to extract new feature points in the current frame image, instead of directly enumerating all the pixels of the current frame image, repeating the calculation, or directly enumerating a fixed number of pixels, by comparing the previous frame image According to the tracking results, it can avoid repeated selection of feature points in the same area, which can reduce the amount of calculation and memory resources; when the number of successfully tracked second feature points meets the preset number threshold, it is not necessary Extracting new feature points can avoid repetition, a large number of calculations, and is fast; when the number of successfully tracked second feature points is less than the preset number threshold, only the remaining number of new feature points can be extracted to the preset number threshold. Reduce the extraction of new feature points and reduce the memory usage, so there is no need to provide a large memory space, and the speed is fast.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本申请。It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the application.
附图说明Description of the drawings
为了更清楚地说明本申请实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实 施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present application more clearly, the following will briefly introduce the drawings used in the description of the embodiments. Obviously, the drawings in the following description are some embodiments of the present application. Ordinary technicians can obtain other drawings based on these drawings without creative work.
图1是本申请提取特征点的方法一实施例的流程示意图;FIG. 1 is a schematic flowchart of an embodiment of a method for extracting feature points according to the present application;
图2是本申请提取特征点的方法另一实施例的流程示意图;2 is a schematic flowchart of another embodiment of the method for extracting feature points according to the present application;
图3是本申请提取特征点的方法又一实施例的流程示意图;3 is a schematic flowchart of another embodiment of the method for extracting feature points according to the present application;
图4是本申请提取特征点的方法中第一特征点位置预测的示意图;4 is a schematic diagram of the position prediction of the first feature point in the method for extracting feature points according to the present application;
图5是本申请提取特征点的方法中第一特征点位置跟踪的示意图;FIG. 5 is a schematic diagram of the position tracking of the first feature point in the method for extracting feature points according to the present application;
图6是本申请提取特征点的方法又一实施例的流程示意图;FIG. 6 is a schematic flowchart of another embodiment of the method for extracting feature points according to the present application;
图7是本申请提取特征点的方法又一实施例的流程示意图;FIG. 7 is a schematic flowchart of another embodiment of the method for extracting feature points according to the present application;
图8是本申请提取特征点的方法一应用中当前帧图像进行栅格化处理后的示意图;FIG. 8 is a schematic diagram of the current frame image after rasterization processing in the first application of the method for extracting feature points of the present application;
图9是图8的多个栅格图像中追踪成功的第二特征点的实际位置及不需要提取新特征点的栅格图像的示意图;9 is a schematic diagram of the actual positions of the second feature points that are successfully tracked in the multiple raster images of FIG. 8 and the raster images that do not need to extract new feature points;
图10是图8的多个栅格图像中划分为中心区域及中心区域之外的区域的示意图;FIG. 10 is a schematic diagram of the multiple raster images of FIG. 8 divided into a central area and an area outside the central area;
图11是图9的多个栅格图像中追踪成功的第二特征点对应的栅格图像及后续提取新特征点的示意图;11 is a schematic diagram of a raster image corresponding to a second feature point successfully tracked in the multiple raster images of FIG. 9 and subsequent extraction of new feature points;
图12是本申请可移动平台一实施例的结构示意图。Fig. 12 is a schematic structural diagram of an embodiment of a movable platform of the present application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of them. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
附图中所示的流程图仅是示例说明,不是必须包括所有的内容和操作/步骤,也不是必须按所描述的顺序执行。例如,有的操作/步骤还可以分解、组合或部分合并,因此实际执行的顺序有可能根据实际情况改变。The flowchart shown in the drawings is only an example, and does not necessarily include all contents and operations/steps, nor does it have to be executed in the described order. For example, some operations/steps can also be decomposed, combined or partially combined, so the actual execution order may be changed according to actual conditions.
传统从图像中提取特征点的方法,需要对整张图片的所有像素进行枚举,重复计算的操作较多,计算量大。同时,对于强纹理的环境,也需要枚举三十 万个像素时,可能会产生数十万个特征点,需要提供较大的内存。本申请实施例在当前帧图像中对当前帧图像的上一帧图像中的第一特征点进行跟踪,以获取当前图像帧中跟踪成功的第二特征点;根据第二特征点的数目,确定是否要在当前帧图像中提取新特征点;由于在前帧图像中对第一特征点进行跟踪,根据跟踪成功的第二特征点的数目确定是否在当前帧图像中提取新特征点,而不是直接对当前帧图像的所有像素点进行枚举,重复计算,或者直接枚举固定数量的像素点,通过对上一帧图像中的第一特征点进行跟踪,根据跟踪结果能够避免在同一块区域内重复选取特征点,能够减少计算量和内存资源;当跟踪成功的第二特征点的数目满足预设数目阈值时,可以不提取新特征点,能够避免重复、大量的计算,且速度快;当跟踪成功的第二特征点的数目小于预设数目阈值时,可以只提取剩余数目的新特征点至预设数目阈值,能够减少提取新特征点,减少占用内存,因此不需要提供较大的内存空间,且速度快。The traditional method of extracting feature points from an image needs to enumerate all the pixels of the entire image, which requires a lot of repeated calculation operations and a large amount of calculation. At the same time, for a strong texture environment, when 300,000 pixels need to be enumerated, hundreds of thousands of feature points may be generated, which requires a large amount of memory. In the embodiment of the present application, the first feature point in the previous frame image of the current frame image is tracked in the current frame image to obtain the second feature point successfully tracked in the current image frame; the determination is made according to the number of second feature points Whether to extract new feature points in the current frame image; since the first feature point is tracked in the previous frame image, the number of second feature points that have been successfully tracked is used to determine whether to extract new feature points in the current frame image instead of Directly enumerate all pixels of the current frame image, repeat the calculation, or directly enumerate a fixed number of pixels, by tracking the first feature point in the previous frame image, it can avoid being in the same area according to the tracking result The internal repetitive selection of feature points can reduce the amount of calculation and memory resources; when the number of successfully tracked second feature points meets the preset number threshold, no new feature points can be extracted, which can avoid repetition, a large number of calculations, and is fast; When the number of successfully tracked second feature points is less than the preset number threshold, only the remaining number of new feature points can be extracted to the preset number threshold, which can reduce the extraction of new feature points and reduce the memory usage, so there is no need to provide a larger number Memory space, and fast.
本申请应用于包括拍摄装置的可移动平台,可移动平台是指可以自动移动或者在受控条件下移动的各种平台,例如:云台(例如:云台相机,等等)、无人飞行器、车辆、无人车辆、地面机器人等等。This application applies to a movable platform that includes a camera. The movable platform refers to various platforms that can move automatically or under controlled conditions, such as PTZ (for example, PTZ camera, etc.), unmanned aerial vehicles , Vehicles, unmanned vehicles, ground robots, etc.
下面结合附图,对本申请的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。Hereinafter, some embodiments of the present application will be described in detail with reference to the accompanying drawings. In the case of no conflict, the following embodiments and features in the embodiments can be combined with each other.
参见图1,图1是本申请提取特征点的方法一实施例的流程示意图,本申请实施例的方法应用于包括拍摄装置的可移动平台,该方法包括:Referring to Fig. 1, Fig. 1 is a schematic flowchart of an embodiment of a method for extracting feature points according to the present application. The method according to an embodiment of the present application is applied to a movable platform including a camera, and the method includes:
步骤S101:获取拍摄装置拍摄的当前帧图像。Step S101: Acquire a current frame image taken by the photographing device.
步骤S102:在当前帧图像中对当前帧图像的上一帧图像中的第一特征点进行跟踪以获取当前图像帧中跟踪成功的第二特征点。Step S102: Track the first feature point in the previous frame image of the current frame image in the current frame image to obtain the second feature point successfully tracked in the current frame image.
在本实施例中,第一特征点跟踪是指将上一帧图像中选定的第一特征点(即目标特征点)在接下来的当前帧图像(即实时帧图像)中寻找第一特征点的最佳位置,其中上一帧图像中选定的第一特征点可以采用通过目标自动检测识别的方法来获取,也可以采用人工参与的方法选定。In this embodiment, the first feature point tracking refers to searching for the first feature point (ie target feature point) selected in the previous frame image in the next current frame image (ie real-time frame image) The best position of the point, where the first feature point selected in the last frame of image can be obtained by the method of automatic target detection and recognition, or it can be selected by the method of manual participation.
第一特征点跟踪采用特征点跟踪算法。基于特征点的跟踪主要包括特征点提取和特征点匹配两个方面。上一帧图像中选定的第一特征点主要包括颜色、纹理、边缘、块特征、光流特征、周长、面积、质心、角点等。第一特征点提 取的目的是进行帧间第一特征点的匹配,并以最优匹配来跟踪第一特征点。常见的基于特征点匹配的跟踪算法有:基于二值化目标图像匹配的跟踪、基于边缘特征匹配或角点特征匹配的跟踪、基于目标灰度特征匹配的跟踪、基于目标颜色特征匹配的跟踪等。其中,KLT跟踪算法是一种被广泛应用的基于特征点跟踪算法,由于特征点分布在整个目标上,因此即使有一部分被遮挡,仍然可以跟踪到另外一部分特征点,这也是KLT跟踪算法的优点。The first feature point tracking uses a feature point tracking algorithm. Tracking based on feature points mainly includes two aspects: feature point extraction and feature point matching. The first feature point selected in the last frame of image mainly includes color, texture, edge, block feature, optical flow feature, perimeter, area, centroid, corner point, etc. The purpose of extracting the first feature point is to match the first feature point between frames and track the first feature point with the best match. Common tracking algorithms based on feature point matching include: tracking based on binary target image matching, tracking based on edge feature matching or corner feature matching, tracking based on target gray feature matching, tracking based on target color feature matching, etc. . Among them, the KLT tracking algorithm is a widely used tracking algorithm based on feature points. Because the feature points are distributed on the entire target, even if a part is occluded, another part of the feature points can still be tracked. This is also the advantage of the KLT tracking algorithm. .
总的来说,基于特征点的跟踪算法的优点在于:对运动目标的尺度、形变和亮度等变化不敏感,即使目标的某一部分被遮挡,只要还有一部分特征可以被看到,就可以完成跟踪任务;另外,这种方法与Kalman滤波器联合使用,也具有很好的跟踪效果。In general, the advantage of the tracking algorithm based on feature points is that it is not sensitive to changes in the scale, deformation, and brightness of the moving target. Even if a certain part of the target is occluded, as long as a part of the feature can be seen, it can be completed. Tracking task; In addition, this method is used in conjunction with Kalman filter, and it also has a good tracking effect.
步骤S103:确定第二特征点的数目。Step S103: Determine the number of second feature points.
步骤S104:根据第二特征点的数目确定是否要在当前帧图像中提取新特征点。Step S104: Determine whether to extract new feature points in the current frame image according to the number of second feature points.
根据第二特征点的数目确定是否要在当前帧图像中提取新特征点,而不是一定在当前帧图像中提取新特征点,能够减少计算量和内存资源。Determine whether to extract new feature points in the current frame image according to the number of second feature points, instead of necessarily extracting new feature points in the current frame image, which can reduce the amount of calculation and memory resources.
本申请实施例在当前帧图像中对当前帧图像的上一帧图像中的第一特征点进行跟踪,以获取当前图像帧中跟踪成功的第二特征点;根据第二特征点的数目,确定是否要在当前帧图像中提取新特征点;由于在前帧图像中对第一特征点进行跟踪,根据跟踪成功的第二特征点的数目确定是否在当前帧图像中提取新特征点,而不是直接对当前帧图像的所有像素点进行枚举,重复计算,或者直接枚举固定数量的像素点,通过对上一帧图像中的第一特征点进行跟踪,根据跟踪结果能够避免在同一块区域内重复选取特征点,能够减少计算量和内存资源;当跟踪成功的第二特征点的数目满足预设数目阈值时,可以不提取新特征点,能够避免重复、大量的计算,且速度快;当跟踪成功的第二特征点的数目小于预设数目阈值时,可以只提取剩余数目的新特征点至预设数目阈值,能够减少提取新特征点,减少占用内存,因此不需要提供较大的内存空间,且速度快。In the embodiment of the present application, the first feature point in the previous frame image of the current frame image is tracked in the current frame image to obtain the second feature point successfully tracked in the current image frame; the determination is made according to the number of second feature points Whether to extract new feature points in the current frame image; since the first feature point is tracked in the previous frame image, the number of second feature points that have been successfully tracked is used to determine whether to extract new feature points in the current frame image instead of Directly enumerate all pixels of the current frame image, repeat the calculation, or directly enumerate a fixed number of pixels, by tracking the first feature point in the previous frame image, it can avoid being in the same area according to the tracking result The internal repetitive selection of feature points can reduce the amount of calculation and memory resources; when the number of successfully tracked second feature points meets the preset number threshold, no new feature points can be extracted, which can avoid repetition, a large number of calculations, and is fast; When the number of successfully tracked second feature points is less than the preset number threshold, only the remaining number of new feature points can be extracted to the preset number threshold, which can reduce the extraction of new feature points and reduce the memory usage, so there is no need to provide a larger number Memory space, and fast.
下面具体说明步骤S102跟踪第一特征点的具体细节。The specific details of the tracking of the first feature point in step S102 are described in detail below.
在一实施例中,为了避免在整个图像中跟踪,缩小跟踪范围,首先确定跟 踪区域,即步骤S102可以包括:子步骤S1021和子步骤S1022,如图2所示。In an embodiment, in order to avoid tracking in the entire image and reduce the tracking range, first determine the tracking area, that is, step S102 may include: sub-step S1021 and sub-step S1022, as shown in FIG. 2.
子步骤S1021:在当前帧图像中确定上一帧图像中的第一特征点在当前帧图像中的跟踪区域。Sub-step S1021: Determine, in the current frame of image, the tracking area of the first feature point in the previous frame of image in the current frame of image.
子步骤S1022:在当前帧图像中的跟踪区域内对上一帧图像中的第一特征点进行跟踪。Sub-step S1022: Track the first feature point in the previous frame of image within the tracking area in the current frame of image.
在本实施例中采用常规的特征点跟踪方法,在对第一特征点在当前帧图像中进行跟踪时,跟踪起点是上一帧图像的第一特征点本身,跟踪区域通常比较大。例如跟踪区域是以第一特征点为原点,以R(R的尺寸较大)为半径的圆形区域作为跟踪区域。根据拍摄装置的相对移动速度、上一帧图像的拍摄时间与当前帧图像的拍摄时间之差,可以大概估计出R的尺寸。然后在当前帧图像中的跟踪区域内对上一帧图像中的第一特征点进行跟踪,相比较在整个当前帧图像中对上一帧图像中的第一特征点进行跟踪,跟踪区域缩小很多,能够提高跟踪速度。In this embodiment, a conventional feature point tracking method is adopted. When the first feature point is tracked in the current frame of image, the tracking starting point is the first feature point itself of the previous frame of image, and the tracking area is usually relatively large. For example, the tracking area uses the first feature point as the origin, and a circular area with R (the size of R is larger) as the radius as the tracking area. According to the relative moving speed of the camera, the difference between the shooting time of the previous frame of image and the shooting time of the current frame of image, the size of R can be roughly estimated. Then track the first feature point in the previous frame image in the tracking area of the current frame image. Compared with tracking the first feature point in the previous frame image in the entire current frame image, the tracking area is reduced a lot , Can improve the tracking speed.
为了进一步缩小跟踪区域,对上一帧图像中的第一特征点在当前帧图像中预测其位置,根据预测的位置确定跟踪区域,即子步骤S1021,还可以包括:子步骤S1021a和子步骤S1021b,如图3所示。In order to further reduce the tracking area, predict the position of the first feature point in the previous frame image in the current frame image, and determine the tracking area according to the predicted position, that is, sub-step S1021, which may also include: sub-step S1021a and sub-step S1021b, As shown in Figure 3.
子步骤S1021a:预测第一特征点对应的空间点在当前帧图像中的位置。Sub-step S1021a: predict the position of the spatial point corresponding to the first feature point in the current frame of image.
如图4所示,黑色圆点表示第一特征点在上一帧图像中的位置,灰色圆点表示第一特征点在当前帧图像中的预测位置,灰色箭头表示第一特征点的预测过程。As shown in Figure 4, the black circle indicates the position of the first feature point in the previous frame, the gray circle indicates the predicted position of the first feature point in the current frame, and the gray arrow indicates the prediction process of the first feature point. .
子步骤S1021b:根据预测的位置确定上一帧图像中的第一特征点在当前帧图像中的跟踪区域。Sub-step S1021b: Determine the tracking area of the first feature point in the previous frame of image in the current frame of image according to the predicted position.
参见图5,黑色圆点A表示第一特征点在上一帧图像中的位置,灰色圆点B表示第一特征点在当前帧图像中的预测位置,灰黑色圆点C表示第一特征点在当前帧图像中跟踪成功的实际位置;灰色箭头1(即从A到B)表示第一特征点的预测过程,灰色箭头2(即从B到C)表示第一特征点的跟踪过程;三个大圆圈表示通过传统方法进行特征点跟踪时的跟踪区域,三个小圆圈表示根据第一特征点的预测位置确定的跟踪区域。Referring to Figure 5, the black dot A represents the position of the first feature point in the previous frame of image, the gray dot B represents the predicted position of the first feature point in the current frame of image, and the gray and black dot C represents the first feature point. The actual position of the successful tracking in the current frame image; the gray arrow 1 (from A to B) represents the prediction process of the first feature point, and the gray arrow 2 (from B to C) represents the tracking process of the first feature point; three The large circles represent the tracking area when the feature point is tracked by the traditional method, and the three small circles represent the tracking area determined according to the predicted position of the first feature point.
由于通过预测上一帧图像第一特征点在当前帧图像中的位置,在预测位置 的周围跟踪,跟踪区域能够大大减小,从而能够进一步提高跟踪速度。Because by predicting the position of the first feature point of the previous frame of image in the current frame of image, tracking around the predicted position, the tracking area can be greatly reduced, so that the tracking speed can be further improved.
其中,子步骤S1021a,具体可以包括:根据拍摄装置在拍摄上一帧图像位姿信息和第一特征点对应的空间点的位置,预测第一特征点对应的空间点在当前帧图像中的位置。Wherein, the sub-step S1021a may specifically include: predicting the position of the spatial point corresponding to the first feature point in the current frame of the image according to the pose information of the last frame of image captured by the camera and the position of the spatial point corresponding to the first feature point .
本实施例采用三角化测量算法。对于上一帧已经进行计算、三维重建的特征点,第一特征点对应的空间点的位置(即三维坐标)已经通过三角化算法计算得到;对于上一帧刚提取但未进行三维重建的第一特征点(新提取的特征点),以上一帧第一特征点的平均深度作为粗略的深度值,预测对应的空间点的位置(即三维坐标)。This embodiment uses a triangulation measurement algorithm. For the feature points that have been calculated and three-dimensionally reconstructed in the previous frame, the position of the spatial point corresponding to the first feature point (ie, three-dimensional coordinates) has been calculated through the triangulation algorithm; for the first frame that has just been extracted but not three-dimensionally reconstructed For a feature point (newly extracted feature point), the average depth of the first feature point in the previous frame is used as a rough depth value to predict the location of the corresponding spatial point (ie, three-dimensional coordinates).
拍摄装置在拍摄上一帧图像位姿信息包括拍摄装置在拍摄上一帧图像的旋转运动信息和平移运动信息,拍摄装置在拍摄上一帧图像位姿信息是已经预估出来的已知信息,根据拍摄装置在拍摄上一帧图像位姿信息、拍摄装置搭载的可移动平台的运动信息能够预估出拍摄装置在拍摄当前帧图像位姿信息,进一步根据预估的拍摄装置在拍摄当前帧图像位姿信息和第一特征点对应的空间点的位置,即可预测第一特征点对应的空间点在当前帧图像中的位置。The pose information of the last frame of the image taken by the camera includes the rotational motion information and translation motion information of the last frame of the image taken by the camera. The pose information of the last frame of the image taken by the camera is known information that has been estimated. According to the posture information of the last frame of the image taken by the camera and the movement information of the movable platform equipped with the camera, it can be estimated that the camera is taking the current frame of image posture information, and further based on the estimated camera’s taking the current frame of image The pose information and the position of the space point corresponding to the first feature point can predict the position of the space point corresponding to the first feature point in the current frame image.
p i=π(RP i+t),其中,π代表投影函数,P i为第一特征点i对应的空间点的三维坐标,p i是第一特征点对应的空间点在当前帧图像上的像素坐标,R、t表示拍摄装置在拍摄当前帧图像的旋转和平移运动信息。 p i = π (RP i + t), where, π representing the projector function, P i is the i-dimensional coordinates of first feature points corresponding to spatial point, p i is the spatial point corresponding to a first feature points on the current frame image The pixel coordinates of R and t represent the rotation and translation motion information of the current frame image taken by the camera.
下面具体说明步骤S104是否要在当前帧图像中提取新特征点的具体细节。The specific details of whether to extract new feature points in the current frame of image in step S104 will be specifically described below.
在一实施例中,为了进一步确定是否要在当前帧图像中提取新特征点,也为了避免重复、大量的计算,步骤S104还可以包括:子步骤S1041、子步骤S1042以及子步骤S1043,如图6所示。In an embodiment, in order to further determine whether to extract new feature points in the current frame image, and to avoid repetition and a large number of calculations, step S104 may further include: sub-step S1041, sub-step S1042, and sub-step S1043, as shown in FIG. 6 shown.
子步骤S1041:判断第二特征点的数目是否大于或等于第一预设数目阈值。Sub-step S1041: Determine whether the number of second feature points is greater than or equal to a first preset number threshold.
子步骤S1042:若第二特征点的数目大于或等于第一预设数目阈值时,则确定不在当前帧图像中提取新特征点。Sub-step S1042: if the number of second feature points is greater than or equal to the first preset number threshold, it is determined not to extract new feature points in the current frame image.
子步骤S1043:若第二特征点的数目小于第一预设数目阈值,则确定要在当前帧图像中提取新特征点。Sub-step S1043: If the number of second feature points is less than the first preset number threshold, it is determined to extract new feature points in the current frame of image.
第一预设数目阈值根据具体应用、具体要求来确定。如果跟踪成功的第二特征点的数目比较多,满足要求,达到第一预设数目阈值及以上,则不需要在 当前帧图像中提取新特征点。如果跟踪成功的第二特征点的数目比较少,不满足要求,没有达到第一预设数目阈值,则需要在当前帧图像中提取新特征点。The first preset number threshold is determined according to specific applications and specific requirements. If the number of second feature points that are successfully tracked is relatively large and meets the requirements, and reaches the first preset number threshold and above, there is no need to extract new feature points in the current frame of image. If the number of second feature points that are successfully tracked is relatively small, does not meet the requirements, and does not reach the first preset number threshold, new feature points need to be extracted from the current frame image.
在一应用中,第一预设数目阈值跟开始的第一帧提取的特征点的数目相关,第一预设数目阈值小于或等于第一帧提取的特征点的数目。In an application, the first preset number threshold is related to the number of feature points extracted in the first frame, and the first preset number threshold is less than or equal to the number of feature points extracted in the first frame.
例如,默认开始的第一帧图像提取的特征点的数目是120个,设置第一预设数目阈值为100。上一帧图像的第一特征点的数目是110,如果当前帧图像追踪成功的第二特征点的数目是100,认为点数足够多,那么当前帧图像不需要提取新特征点;如果当前帧图像追踪成功的第二特征点的数目是90,那么当前帧图像需要提取新特征点。For example, by default, the number of feature points extracted from the first frame of image is 120, and the first preset number threshold is set to 100. The number of the first feature points of the previous frame image is 110. If the number of the second feature points that are successfully tracked in the current frame image is 100, it is considered that the number of points is sufficient, then the current frame image does not need to extract new feature points; if the current frame image The number of second feature points that are successfully tracked is 90, so new feature points need to be extracted from the current frame of image.
本实施例当跟踪成功的第二特征点的数目满足甚至超过第一预设数目阈值时,可以不提取新特征点,当跟踪成功的第二特征点的数目小于第一预设数目阈值时,再提取新特征点;通过这种方式,能够避免重复、大量的计算,且速度快。In this embodiment, when the number of successfully tracked second feature points meets or exceeds the first preset number threshold, no new feature points may be extracted. When the number of successfully tracked second feature points is less than the first preset number threshold, Then extract new feature points; in this way, repetition, a large number of calculations can be avoided, and the speed is fast.
进一步,在当前帧图像中提取的新特征点的数目是根据第一预设数目阈值与第二特征点的数目之差确定的。在某些实施例中,在当前帧图像中提取的新特征点的数目是第一预设数目阈值与第二特征点的数目之差。通过这种方式,能够减少提取新特征点,减少占用内存,因此不需要提供较大的内存空间,且速度快。Further, the number of new feature points extracted in the current frame image is determined according to the difference between the first preset number threshold and the number of second feature points. In some embodiments, the number of new feature points extracted in the current frame of image is the difference between the first preset number threshold and the number of second feature points. In this way, it is possible to reduce the extraction of new feature points and reduce the memory occupation, so there is no need to provide a large memory space and the speed is fast.
例如,默认开始的第一帧图像提取的特征点的数目是120个,设置第一预设数目阈值为100。上一帧图像的第一特征点的数目是110,如果当前帧图像追踪成功的第二特征点的数目是90,那么当前帧图像需要提取新特征点,提取的新特征点的数目可以是10个,也可以是10个以上。总的来说,提取的新特征点的数目可以远远小于100,能够大大减少提取新特征点,减少占用内存,因此不需要提供较大的内存空间,且速度快。For example, by default, the number of feature points extracted from the first frame of image is 120, and the first preset number threshold is set to 100. The number of first feature points in the previous frame of image is 110. If the number of second feature points that are successfully tracked in the current frame image is 90, then new feature points need to be extracted in the current frame of image, and the number of new feature points extracted can be 10 There can be more than ten. In general, the number of new feature points to be extracted can be far less than 100, which can greatly reduce the number of new feature points to be extracted and reduce the memory usage. Therefore, there is no need to provide a large memory space and the speed is fast.
如果当前帧图像需要提取新特征点,那么如何提取新特征点,下面对此问题进行具体说明。If the current frame image needs to extract new feature points, how to extract the new feature points will be described in detail below.
在一实际应用中,为了保证特征点均匀分布,将当前帧图像划分成多个栅格图像。参见图7,该方法还可以包括:In an actual application, in order to ensure uniform distribution of feature points, the current frame image is divided into multiple raster images. Referring to Figure 7, the method may further include:
步骤S201:根据第一预设尺寸对当前帧图像进行栅格化处理以获取多个 栅格图像。例如:如图8所示,当前帧图像进行栅格化处理获取20个栅格图像。Step S201: Perform rasterization processing on the current frame image according to the first preset size to obtain multiple raster images. For example: as shown in Figure 8, the current frame image is rasterized to obtain 20 raster images.
第一预设尺寸根据具体应用和具体要求确定。例如:根据开始第一帧图像提取的特征点的数目来确定;或者根据第一预设数目阈值来确定,等等。The first preset size is determined according to specific applications and specific requirements. For example: it is determined according to the number of feature points extracted from the first frame of image; or it is determined according to the first preset number threshold, and so on.
将当前帧图像划分成多个栅格图像,有助于缩小上一帧图像中的第一特征点在当前帧图像中的跟踪范围,有助于对跟踪成功的第二特征点进行定位。最为重要的是,为保证特征点均匀分布提供技术支持。Dividing the current frame image into multiple raster images helps reduce the tracking range of the first feature point in the previous frame image in the current frame image, and helps locate the second feature point that has been successfully tracked. The most important thing is to provide technical support to ensure the uniform distribution of feature points.
需要说明的是,本实施例中栅格图像的范围、形状、数目不做限定。It should be noted that the range, shape, and number of raster images in this embodiment are not limited.
步骤S202:从多个栅格图像中确定目标栅格图像,其中,目标栅格图像中不包括第二特征点。根据步骤S102的跟踪结果,即可从多个栅格图像中确定不包括第二特征点的目标栅格图像。Step S202: Determine a target raster image from a plurality of raster images, where the target raster image does not include the second feature point. According to the tracking result of step S102, the target raster image that does not include the second feature point can be determined from the plurality of raster images.
步骤S203:当确定要在当前帧图像提取新特征点时,从目标栅格图像中提取新特征点,其中,目标栅格图像至多提取一个新特征点。根据子步骤S1043,当确定要在当前帧图像提取新特征点时,即可在目标栅格图像中提取新特征点。好的稀疏特征点集应该是均匀分布的,每个目标栅格图像至多提取一个新特征点作为代表,以此保证特征点分布基本是均匀的。Step S203: When it is determined that a new feature point is to be extracted from the current frame image, the new feature point is extracted from the target raster image, wherein at most one new feature point is extracted from the target raster image. According to the sub-step S1043, when it is determined that a new feature point is to be extracted from the current frame image, the new feature point can be extracted from the target raster image. A good sparse feature point set should be uniformly distributed, and each target raster image can extract at most one new feature point as a representative to ensure that the feature point distribution is basically uniform.
如图9所示,左图中小圆点表示已经跟踪成功的第二特征点在当前帧图像中的实际位置,右图中黑色格子表示本格不需要进行新特征点提取。As shown in Figure 9, the small dots in the left picture indicate the actual position of the second feature point that has been successfully tracked in the current frame of the image, and the black grid in the right picture indicates that the grid does not require new feature point extraction.
通过这种方式,一方面确定新特征点在哪里提取的问题,另一方面能够避免在同一块区域内重复选取特征点,而且保证特征点分布基本是均匀的。In this way, on the one hand, the problem of determining where the new feature points are extracted, on the other hand, can avoid repeated selection of feature points in the same area, and ensure that the feature point distribution is basically uniform.
进一步,为了避免提取到图像边缘质量较低的新特征点,该方法还可以包括:根据第二预设尺寸在当前帧图像中确定中心区域,其中,目标栅格图像包括位于中心区域内的第一目标栅格图像和位于中心区域外的第二目标栅格图像。此时,步骤S203在目标栅格图像中提取新特征点,具体可以包括:第一目标栅格图像中提取新特征点。Further, in order to avoid extracting new feature points with lower edge quality of the image, the method may further include: determining a central area in the current frame of the image according to a second preset size, wherein the target raster image includes the first located in the central area. A target grid image and a second target grid image located outside the central area. At this time, step S203 extracting new feature points from the target raster image may specifically include: extracting new feature points from the first target raster image.
对于视觉定位系统,由于运动可能、相机畸变等原因,图像边缘的特征点质量会较低。如图10所示,左图,按照新特征点提取的优先级,根据第二预设尺寸将当前帧图像分为中心区域的A区域与中心区域外的B区域;右图,A区域内的第一目标栅格图像包括:A1至A6,B区域内的第二目标栅格图像包 括:B1至B14。A区域出现可以用的质量较好的新特征点的几率更高,故优先提取A区域内A1至A6第一目标栅格图像中的新特征点。For the visual positioning system, the quality of the feature points at the edge of the image will be low due to possible motion, camera distortion, and other reasons. As shown in Figure 10, in the left image, according to the priority of the new feature point extraction, the current frame image is divided into the central area A area and the B area outside the central area according to the second preset size; the right image, the area in the A area The first target raster image includes: A1 to A6, and the second target raster image in the B area includes: B1 to B14. The probability of new feature points with better quality that can be used in the area A is higher, so the new feature points in the first target raster image from A1 to A6 in the area A are preferentially extracted.
在一实施方式中,第二预设尺寸的确定方式还可以包括:In an embodiment, the method for determining the second preset size may further include:
步骤S301:获取可移动平台的状态信息,其中,可移动平台的状态信息包括可移动平台的运动状态参数。Step S301: Obtain status information of the movable platform, where the status information of the movable platform includes the motion status parameters of the movable platform.
具体地,运动状态参数包括可移动平台的速度、加速度、角速度、角加速度、拍摄装置的角速度、拍摄装置的角加速度中的一种或多种。Specifically, the motion state parameter includes one or more of the velocity, acceleration, angular velocity, angular acceleration of the movable platform, angular velocity of the photographing device, and angular acceleration of the photographing device.
步骤S302:根据可移动平台的运动状态参数确定第二预设尺寸。其中,第二预设尺寸与运动状态参数负相关。Step S302: Determine a second preset size according to the motion state parameter of the movable platform. Wherein, the second preset size is negatively related to the motion state parameter.
通过上述方式,能够根据具体实际情况灵活调整优先提取新特征点的中心区域的大小。Through the above method, the size of the central area where new feature points are preferentially extracted can be flexibly adjusted according to specific actual conditions.
为了提取到满足要求的新特征点,步骤S203在第一目标栅格图像中提取新特征点,具体还可以包括:子步骤S2031和子步骤S2032。In order to extract new feature points that meet the requirements, step S203 extracts new feature points from the first target raster image, which may specifically include: sub-step S2031 and sub-step S2032.
子步骤S2031:按照预设的循环顺序分别对不同的第一目标栅格图像中的像素点进行检测,以确定该像素点是否为候选特征点。Sub-step S2031: respectively detect the pixel points in different first target raster images according to a preset cycle sequence to determine whether the pixel point is a candidate feature point.
子步骤S2032:将包括候选特征点的第一目标栅格图像中候选特征点的质量参数最高且高于预设特征点质量阈值的候选特征点确定为第一目标栅格图像的新特征点。Sub-step S2032: Determine the candidate feature point with the highest quality parameter of the candidate feature point in the first target raster image including the candidate feature point and higher than the preset feature point quality threshold as the new feature point of the first target raster image.
本实施例对每个第一目标栅格图像中的像素点给予提取新特征点机会,以尽量使特征点均匀分布。但是是否可以提取新特征点的第一个条件是:经过检测该像素点符合候选特征点的要求;如果第一目标栅格图像中的像素点经过检测均不符合作为候选特征点,那么该第一目标栅格图像不再提取新特征点。In this embodiment, each pixel in the first target raster image is given an opportunity to extract new feature points, so as to make the feature points evenly distributed as much as possible. However, the first condition for extracting new feature points is: the pixel point meets the requirements of candidate feature points after detection; if the pixel points in the first target raster image do not meet the requirements of candidate feature points after detection, then the second No new feature points are extracted from a target raster image.
对像素点进行检测的具体方式和检测要求,本申请实施例不做限定。例如:对像素点的颜色、所处位置、是否是角点、是否是交点,等等进行检测。The specific methods and requirements for detecting pixels are not limited in the embodiment of the present application. For example: to detect the color of the pixel, its location, whether it is a corner, whether it is an intersection, and so on.
通常情况下,候选特征点的数目比较多,通常会远远多于需要提取的新特征点的数目,能够提取为新特征点的第二个条件是:该第一目标栅格图像中候选特征点的质量参数最高且高于预设特征点质量阈值,满足第二个条件的第一目标栅格图像中候选特征点即可作为第一目标栅格图像的新特征点。在一应用中,可以采用harris评价特征点的质量。Under normal circumstances, the number of candidate feature points is relatively large, usually far more than the number of new feature points that need to be extracted. The second condition for being able to be extracted as a new feature point is: the candidate feature in the first target raster image The quality parameter of the point is the highest and higher than the preset feature point quality threshold, and the candidate feature point in the first target raster image that meets the second condition can be used as the new feature point of the first target raster image. In an application, Harris can be used to evaluate the quality of feature points.
为了加快速度,尽量节省内存空间,在一实施例中,该方法还包括:当确定检测到第二预设数目的候选特征点时,不再对第一目标栅格图像中的像素点进行检测。即在本实施例中,不全部寻找第一目标栅格图像中的像素点,只要检测到的候选特征点的数目达到第二预设数目,不再对第一目标栅格图像中的像素点进行检测。In order to speed up the speed and save memory space as much as possible, in one embodiment, the method further includes: when it is determined that the second preset number of candidate feature points are detected, no longer detecting the pixels in the first target raster image . That is, in this embodiment, not all the pixels in the first target raster image are searched, as long as the number of detected candidate feature points reaches the second preset number, the pixel points in the first target raster image are no longer searched. Perform testing.
如果从第一目标栅格图像中提取到的新特征点数目不够数目,可以继续在第二目标栅格图像中提取特征点,即步骤S203从第一目标栅格图像中提取新特征点,还可以包括:确定从第一目标栅格图像中提取到的新特征点数目是否大于或等于第三预设数目阈值;当否时,在第二目标栅格图像中提取新特征点。If the number of new feature points extracted from the first target raster image is not enough, you can continue to extract feature points from the second target raster image, that is, step S203 extracts new feature points from the first target raster image, and It may include: determining whether the number of new feature points extracted from the first target raster image is greater than or equal to a third preset number threshold; if not, extracting new feature points from the second target raster image.
其中,第三预设数目阈值是根据第一预设数目阈值与第二特征点的数目之差确定的。在某些实施例中,第三预设数目阈值是第一预设数目阈值与第二特征点的数目之差。The third preset number threshold is determined according to the difference between the first preset number threshold and the number of second feature points. In some embodiments, the third preset number threshold is the difference between the first preset number threshold and the number of second feature points.
例如:参见图11,A2、A5、B7中有跟踪成功的第二特征点,这几个区域不需要提取新特征点。假设一共需要7个特征点,除去A2、A5、B7已有的三个特征点,还需要从A1、A3、A4、A6区域中提取剩下的4个新特征点。那么寻找检测的顺序可以是:For example: referring to Figure 11, there are second feature points that have been successfully tracked in A2, A5, and B7, and no new feature points need to be extracted for these areas. Assuming that a total of 7 feature points are needed, except for the three existing feature points of A2, A5, and B7, the remaining 4 new feature points need to be extracted from the regions of A1, A3, A4, and A6. Then the order of searching for detection can be:
A1区域的第一个像素点→A3区域的第一个像素点→A4区域的第一个像素点→A6区域的第一个像素点→A1区域的第二个像素点→A3区域的第二个像素点→.......→A6区域的第n个像素点,如果还不够7个特征点,再从B1→B2....→B14里面选。The first pixel in the A1 area → the first pixel in the A3 area → the first pixel in the A4 area → the first pixel in the A6 area → the second pixel in the A1 area → the second pixel in the A3 area A pixel →......→the nth pixel in the A6 area. If there are not enough 7 feature points, select from B1→B2....→B14.
参见图12,图12是本申请可移动平台一实施例的结构示意图,需要说明的是,本实施例的可移动平台能够执行上述的提取特征点的方法中的步骤,相关内容的详细说明,请参见上述提取特征点的方法部分,在此不再赘叙。Referring to Figure 12, Figure 12 is a schematic structural diagram of an embodiment of the mobile platform of the present application. It should be noted that the mobile platform of this embodiment can execute the steps in the above-mentioned method for extracting feature points, and a detailed description of the relevant content, Please refer to the part of the method of extracting feature points above, which will not be repeated here.
该可移动平台10包括:拍摄装置13、存储器11和处理器12;拍摄装置13、存储器11和处理器12通过总线14连接。The mobile platform 10 includes: a photographing device 13, a memory 11 and a processor 12; the photographing device 13, the memory 11 and the processor 12 are connected by a bus 14.
其中,处理器12可以是微控制单元、中央处理单元或数字信号处理器,等等。Among them, the processor 12 may be a micro control unit, a central processing unit, or a digital signal processor, and so on.
其中,存储器11可以是Flash芯片、只读存储器、磁盘、光盘、U盘或者移动硬盘等等。Among them, the memory 11 may be a Flash chip, a read-only memory, a magnetic disk, an optical disk, a U disk, or a mobile hard disk, etc.
拍摄装置13用于拍摄图像;存储器11用于存储计算机程序;处理器12用于执行计算机程序并在执行计算机程序时,实现如下步骤:The photographing device 13 is used to photograph images; the memory 11 is used to store a computer program; the processor 12 is used to execute the computer program and when the computer program is executed, the following steps are implemented:
获取拍摄装置拍摄的当前帧图像;在当前帧图像中对当前帧图像的上一帧图像中的第一特征点进行跟踪以获取当前图像帧中跟踪成功的第二特征点;确定第二特征点的数目;根据第二特征点的数目确定是否要在当前帧图像中提取新特征点。Acquire the current frame image taken by the camera; track the first feature point in the previous frame image of the current frame image in the current frame image to obtain the second feature point successfully tracked in the current image frame; determine the second feature point The number of; according to the number of second feature points to determine whether to extract new feature points in the current frame of image.
本申请实施例在当前帧图像中对当前帧图像的上一帧图像中的第一特征点进行跟踪,以获取当前图像帧中跟踪成功的第二特征点;根据第二特征点的数目,确定是否要在当前帧图像中提取新特征点;由于在前帧图像中对第一特征点进行跟踪,根据跟踪成功的第二特征点的数目确定是否在当前帧图像中提取新特征点,而不是直接对当前帧图像的所有像素点进行枚举,重复计算,或者直接枚举固定数量的像素点,通过对上一帧图像中的第一特征点进行跟踪,根据跟踪结果能够避免在同一块区域内重复选取特征点,能够减少计算量和内存资源;当跟踪成功的第二特征点的数目满足预设数目阈值时,可以不提取新特征点,能够避免重复、大量的计算,且速度快;当跟踪成功的第二特征点的数目小于预设数目阈值时,可以只提取剩余数目的新特征点至预设数目阈值,能够减少提取新特征点,减少占用内存,因此不需要提供较大的内存空间,且速度快。In the embodiment of the present application, the first feature point in the previous frame image of the current frame image is tracked in the current frame image to obtain the second feature point successfully tracked in the current image frame; the determination is made according to the number of second feature points Whether to extract new feature points in the current frame image; since the first feature point is tracked in the previous frame image, the number of second feature points that have been successfully tracked is used to determine whether to extract new feature points in the current frame image instead of Directly enumerate all pixels of the current frame image, repeat the calculation, or directly enumerate a fixed number of pixels, by tracking the first feature point in the previous frame image, it can avoid being in the same area according to the tracking result The internal repetitive selection of feature points can reduce the amount of calculation and memory resources; when the number of successfully tracked second feature points meets the preset number threshold, no new feature points can be extracted, which can avoid repetition, a large number of calculations, and is fast; When the number of successfully tracked second feature points is less than the preset number threshold, only the remaining number of new feature points can be extracted to the preset number threshold, which can reduce the extraction of new feature points and reduce the memory usage, so there is no need to provide a larger Memory space, and fast.
其中,处理器在执行计算机程序时,实现如下步骤:若第二特征点的数目大于或等于第一预设数目阈值时,则确定不在当前帧图像中提取新特征点;否则,则确定要在当前帧图像中提取新特征点。Wherein, when the processor executes the computer program, the following steps are implemented: if the number of second feature points is greater than or equal to the first preset number threshold, it is determined not to extract new feature points in the current frame image; otherwise, it is determined to be Extract new feature points from the current frame of image.
其中,在当前帧图像中提取的新特征点的数目是根据第一预设数目阈值与第二特征点的数目之差确定的。Wherein, the number of new feature points extracted in the current frame image is determined according to the difference between the first preset number threshold and the number of second feature points.
其中,处理器在执行计算机程序时,实现如下步骤:根据第一预设尺寸对当前帧图像进行栅格化处理以获取多个栅格图像;从多个栅格图像中确定目标栅格图像,其中,目标栅格图像中不包括第二特征点;当确定要在当前帧图像提取新特征点时,从目标栅格图像中提取新特征点,其中,目标栅格图像至多提取一个新特征点。Wherein, when the processor executes the computer program, it implements the following steps: rasterize the current frame image according to the first preset size to obtain multiple raster images; determine the target raster image from the multiple raster images, Among them, the target raster image does not include the second feature point; when it is determined to extract a new feature point from the current frame image, the new feature point is extracted from the target raster image, where at most one new feature point is extracted from the target raster image .
其中,处理器在执行计算机程序时,实现如下步骤:根据第二预设尺寸在 当前帧图像中确定中心区域,其中,目标栅格图像包括位于中心区域内的第一目标栅格图像和位于中心区域外的第二目标栅格图像;在第一目标栅格图像中提取新特征点。Wherein, when the processor executes the computer program, the following steps are implemented: determine the central area in the current frame image according to the second preset size, wherein the target raster image includes a first target raster image located in the central area and a first target raster image located in the center. The second target raster image outside the area; new feature points are extracted from the first target raster image.
其中,处理器在执行计算机程序时,实现如下步骤:按照预设的循环顺序分别对不同的第一目标栅格图像中的像素点进行检测以确定该像素点是否为候选特征点;将包括候选特征点的第一目标栅格图像中候选特征点的质量参数最高且高于预设特征点质量阈值的候选特征点确定为目标栅格图像的新特征点。Wherein, when the processor executes the computer program, the following steps are implemented: according to a preset loop sequence, the pixels in different first target raster images are respectively detected to determine whether the pixel is a candidate feature point; the candidate will be included In the first target raster image of the characteristic points, the candidate characteristic point with the highest quality parameter of the candidate characteristic point and higher than the preset characteristic point quality threshold is determined as the new characteristic point of the target raster image.
其中,处理器在执行计算机程序时,实现如下步骤:当确定检测到第二预设数目的候选特征点时,不再对第一目标栅格图像中的像素点进行检测。Wherein, when the processor executes the computer program, the following steps are implemented: when it is determined that the second preset number of candidate feature points are detected, no more detection is performed on the pixel points in the first target raster image.
其中,处理器在执行计算机程序时,实现如下步骤:确定从第一目标栅格图像中提取到的新特征点数目是否大于或等于第三预设数目阈值;当否时,在第二目标栅格图像中提取新特征点。Wherein, when the processor executes the computer program, it implements the following steps: determining whether the number of new feature points extracted from the first target raster image is greater than or equal to the third preset number threshold; if not, in the second target raster image Extract new feature points from the image.
其中,第三预设数目阈值是根据第一预设数目阈值与第二特征点的数目之差确定的。Wherein, the third preset number threshold is determined according to the difference between the first preset number threshold and the number of second feature points.
其中,处理器在执行计算机程序时,实现如下步骤:获取可移动平台的状态信息,其中,可移动平台的状态信息包括可移动平台的运动状态参数;根据可移动平台的运动状态参数确定第二预设尺寸。Wherein, when the processor executes the computer program, it implements the following steps: acquiring state information of the movable platform, where the state information of the movable platform includes the movement state parameters of the movable platform; and determining the second step according to the movement state parameters of the movable platform Preset size.
其中,运动状态参数包括可移动平台的速度、加速度、角速度、角加速度、拍摄装置的角速度、拍摄装置的角加速度中的一种或多种。Among them, the motion state parameters include one or more of the speed, acceleration, angular velocity, angular acceleration of the movable platform, the angular velocity of the photographing device, and the angular acceleration of the photographing device.
其中,第二预设尺寸与运动状态参数负相关。Wherein, the second preset size is negatively related to the motion state parameter.
其中,处理器在执行计算机程序时,实现如下步骤:在当前帧图像中确定上一帧图像中的第一特征点在当前帧图像中的跟踪区域;在当前帧图像中的跟踪区域内对上一帧图像中的第一特征点进行跟踪。Among them, when the processor executes the computer program, it implements the following steps: in the current frame image, determine the tracking area of the first feature point in the previous frame image in the current frame image; align it in the tracking area in the current frame image The first feature point in a frame of image is tracked.
其中,处理器在执行计算机程序时,实现如下步骤:预测第一特征点对应的空间点在当前帧图像中的位置;根据预测的位置确定上一帧图像中的第一特征点在当前帧图像中的跟踪区域。Wherein, when the processor executes the computer program, it implements the following steps: predict the position of the spatial point corresponding to the first feature point in the current frame image; determine the first feature point in the previous frame image according to the predicted position in the current frame image Tracking area in.
其中,处理器在执行计算机程序时,实现如下步骤:根据拍摄装置在拍摄上一帧图像位姿信息和第一特征点对应的空间点的位置,预测第一特征点对应 的空间点在当前帧图像中的位置。Wherein, when the processor executes the computer program, the following steps are implemented: according to the pose information of the last frame of the image taken by the camera and the position of the space point corresponding to the first feature point, predict that the space point corresponding to the first feature point is in the current frame The position in the image.
本申请还提供一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,计算机程序被处理器执行时使处理器实现如上任一项的提取特征点的方法。相关内容的详细说明请参见上述提取特征点的方法部分,在此不再赘叙。The present application also provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the processor implements the method for extracting feature points as described in any of the above items. For a detailed description of the relevant content, please refer to the above method of extracting feature points, which will not be repeated here.
其中,该计算机可读存储介质可以是上述任一可移动平台的内部存储单元,例如可移动平台的硬盘或内存。该计算机可读存储介质也可以是可移动平台的外部存储设备,例如可移动平台上配备的插接式硬盘、智能存储卡、安全数字卡、闪存卡,等等。Wherein, the computer-readable storage medium may be an internal storage unit of any of the above-mentioned removable platforms, such as a hard disk or memory of the removable platform. The computer-readable storage medium may also be an external storage device of the removable platform, such as a plug-in hard disk, a smart memory card, a secure digital card, a flash memory card, etc., equipped on the removable platform.
本申请实施例在当前帧图像中对当前帧图像的上一帧图像中的第一特征点进行跟踪,以获取当前图像帧中跟踪成功的第二特征点;根据第二特征点的数目,确定是否要在当前帧图像中提取新特征点;由于在前帧图像中对第一特征点进行跟踪,根据跟踪成功的第二特征点的数目确定是否在当前帧图像中提取新特征点,而不是直接对当前帧图像的所有像素点进行枚举,重复计算,或者直接枚举固定数量的像素点,通过对上一帧图像中的第一特征点进行跟踪,根据跟踪结果能够避免在同一块区域内重复选取特征点,能够减少计算量和内存资源;当跟踪成功的第二特征点的数目满足预设数目阈值时,可以不提取新特征点,能够避免重复、大量的计算,且速度快;当跟踪成功的第二特征点的数目小于预设数目阈值时,可以只提取剩余数目的新特征点至预设数目阈值,能够减少提取新特征点,减少占用内存,因此不需要提供较大的内存空间,且速度快。In the embodiment of the present application, the first feature point in the previous frame image of the current frame image is tracked in the current frame image to obtain the second feature point successfully tracked in the current image frame; the determination is made according to the number of second feature points Whether to extract new feature points in the current frame image; since the first feature point is tracked in the previous frame image, the number of second feature points that have been successfully tracked is used to determine whether to extract new feature points in the current frame image instead of Directly enumerate all pixels of the current frame image, repeat the calculation, or directly enumerate a fixed number of pixels, by tracking the first feature point in the previous frame image, it can avoid being in the same area according to the tracking result The internal repetitive selection of feature points can reduce the amount of calculation and memory resources; when the number of successfully tracked second feature points meets the preset number threshold, no new feature points can be extracted, which can avoid repetition, a large number of calculations, and is fast; When the number of successfully tracked second feature points is less than the preset number threshold, only the remaining number of new feature points can be extracted to the preset number threshold, which can reduce the extraction of new feature points and reduce the memory usage, so there is no need to provide a larger number Memory space, and fast.
应当理解,在本申请说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本申请。It should be understood that the terms used in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit the application.
还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be understood that the term "and/or" used in the specification and appended claims of this application refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.
以上所述,仅为本申请的具体实施例,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above are only specific embodiments of this application, but the scope of protection of this application is not limited to this. Any person skilled in the art can easily think of various equivalents within the technical scope disclosed in this application. Modifications or replacements, these modifications or replacements shall be covered within the scope of protection of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.

Claims (31)

  1. 一种提取特征点的方法,应用于包括拍摄装置的可移动平台,其特征在于,包括:A method for extracting feature points, applied to a movable platform including a camera, is characterized in that it includes:
    获取所述拍摄装置拍摄的当前帧图像;Acquiring the current frame image taken by the photographing device;
    在当前帧图像中对所述当前帧图像的上一帧图像中的第一特征点进行跟踪以获取所述当前图像帧中跟踪成功的第二特征点;Tracking the first feature point in the previous frame image of the current frame image in the current frame image to obtain the second feature point that is successfully tracked in the current image frame;
    确定所述第二特征点的数目;Determining the number of the second feature points;
    根据所述第二特征点的数目确定是否要在所述当前帧图像中提取新特征点。Determine whether to extract new feature points in the current frame image according to the number of the second feature points.
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述第二特征点的数目确定是否要在所述当前帧图像中提取新特征点,还包括:The method according to claim 1, wherein the determining whether to extract new feature points in the current frame image according to the number of the second feature points, further comprises:
    若所述第二特征点的数目大于或等于第一预设数目阈值时,则确定不在所述当前帧图像中提取新特征点;If the number of the second feature points is greater than or equal to the first preset number threshold, determining not to extract new feature points in the current frame image;
    否则,则确定要在所述当前帧图像中提取新特征点。Otherwise, it is determined to extract new feature points in the current frame image.
  3. 根据权利要求2所述的方法,其特征在于,在所述当前帧图像中提取的新特征点的数目是根据所述第一预设数目阈值与所述第二特征点的数目之差确定的。The method according to claim 2, wherein the number of new feature points extracted in the current frame image is determined according to the difference between the first preset number threshold and the number of second feature points .
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-3, wherein the method further comprises:
    根据第一预设尺寸对所述当前帧图像进行栅格化处理以获取多个栅格图像;Performing rasterization processing on the current frame image according to the first preset size to obtain multiple raster images;
    从所述多个栅格图像中确定目标栅格图像,其中,所述目标栅格图像中不包括所述第二特征点;Determining a target raster image from the plurality of raster images, wherein the target raster image does not include the second feature point;
    当确定要在所述当前帧图像提取新特征点时,从所述目标栅格图像中提取新特征点,其中,所述目标栅格图像至多提取一个新特征点。When it is determined that a new feature point is to be extracted from the current frame image, a new feature point is extracted from the target raster image, wherein at most one new feature point is extracted from the target raster image.
  5. 根据权利要求4所述的方法,其特征在于,所述方法还包括:The method according to claim 4, wherein the method further comprises:
    根据第二预设尺寸在所述当前帧图像中确定中心区域,其中,所述目标栅格图像包括位于所述中心区域内的第一目标栅格图像和位于所述中心区域外的第二目标栅格图像;A central area is determined in the current frame image according to a second preset size, wherein the target raster image includes a first target raster image located in the central area and a second target located outside the central area Raster image
    所述在所述目标栅格图像中提取新特征点,包括:The extracting new feature points from the target raster image includes:
    在所述第一目标栅格图像中提取新特征点。Extracting new feature points from the first target raster image.
  6. 根据权利要求5所述的方法,其特征在于,所述在所述第一目标栅格图像中提取新特征点,包括:The method according to claim 5, wherein the extracting new feature points from the first target raster image comprises:
    按照预设的循环顺序分别对不同的第一目标栅格图像中的像素点进行检测以确定该像素点是否为候选特征点;Respectively detecting pixels in different first target raster images according to a preset cycle sequence to determine whether the pixel is a candidate feature point;
    将包括候选特征点的第一目标栅格图像中候选特征点的质量参数最高且高于预设特征点质量阈值的候选特征点确定为所述第一目标栅格图像的新特征点。The candidate feature point with the highest quality parameter of the candidate feature point in the first target raster image including the candidate feature point and higher than the preset feature point quality threshold is determined as the new feature point of the first target raster image.
  7. 根据权利要求6所述的方法,其特征在于,所述方法还包括:The method according to claim 6, wherein the method further comprises:
    当确定检测到第二预设数目的候选特征点时,不再对第一目标栅格图像中的像素点进行检测。When it is determined that the second preset number of candidate feature points are detected, the pixel points in the first target raster image are no longer detected.
  8. 根据权利要求5或6所述的方法,其特征在于,所述从所述第一目标栅格图像中提取新特征点,还包括:The method according to claim 5 or 6, wherein the extracting new feature points from the first target raster image further comprises:
    确定从所述第一目标栅格图像中提取到的新特征点数目是否大于或等于第三预设数目阈值;Determining whether the number of new feature points extracted from the first target raster image is greater than or equal to a third preset number threshold;
    当否时,在所述第二目标栅格图像中提取新特征点。When not, extract new feature points from the second target raster image.
  9. 根据权利要求8所述的方法,其特征在于,所述第三预设数目阈值是根据第一预设数目阈值与所述第二特征点的数目之差确定的。The method according to claim 8, wherein the third preset number threshold is determined according to the difference between the first preset number threshold and the number of the second feature points.
  10. 根据权利要求1-9任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-9, wherein the method further comprises:
    获取所述可移动平台的状态信息,其中,所述可移动平台的状态信息包括所述可移动平台的运动状态参数;Acquiring state information of the movable platform, wherein the state information of the movable platform includes the motion state parameters of the movable platform;
    根据所述可移动平台的运动状态参数确定所述第二预设尺寸。The second preset size is determined according to the motion state parameter of the movable platform.
  11. 根据权利要求10所述的方法,其特征在于,所述运动状态参数包括可移动平台的速度、加速度、角速度、角加速度、所述拍摄装置的角速度、所述拍摄装置的角加速度中的一种或多种。The method according to claim 10, wherein the motion state parameter includes one of the speed, acceleration, angular velocity, angular acceleration of the movable platform, the angular velocity of the photographing device, and the angular acceleration of the photographing device Or multiple.
  12. 根据权利要求10或11所述的方法,其特征在于,第二预设尺寸与所述运动状态参数负相关。The method according to claim 10 or 11, wherein the second preset size is negatively related to the motion state parameter.
  13. 根据权利要求1-12任一项所述的方法,其特征在于,所述在当前帧 图像中对所述当前帧图像的上一帧图像中的第一特征点进行跟踪,包括:The method according to any one of claims 1-12, wherein the tracking, in the current frame image, the first feature point in the previous frame image of the current frame image comprises:
    在当前帧图像中确定上一帧图像中的第一特征点在当前帧图像中的跟踪区域;Determining, in the current frame of image, the tracking area of the first feature point in the previous frame of image in the current frame of image;
    在当前帧图像中的跟踪区域内对所述上一帧图像中的第一特征点进行跟踪。Tracking the first feature point in the previous frame of image in the tracking area in the current frame of image.
  14. 根据权利要求13所述的方法,其特征在于,所述在当前帧图像中确定上一帧图像中的第一特征点在当前帧图像中的跟踪区域,包括:The method according to claim 13, wherein the determining in the current frame image the tracking area of the first feature point in the previous frame image in the current frame image comprises:
    预测所述第一特征点对应的空间点在所述当前帧图像中的位置;Predicting the position of the spatial point corresponding to the first feature point in the current frame image;
    根据预测的位置确定所述上一帧图像中的第一特征点在当前帧图像中的跟踪区域。The tracking area of the first feature point in the previous frame image in the current frame image is determined according to the predicted position.
  15. 根据权利要求14所述的方法,其特征在于,所述预测所述第一特征点对应的空间点在所述当前帧图像中的位置,包括:The method according to claim 14, wherein the predicting the position of the spatial point corresponding to the first feature point in the current frame image comprises:
    根据所述拍摄装置在拍摄所述上一帧图像位姿信息和所述第一特征点对应的空间点的位置,预测所述第一特征点对应的空间点在所述当前帧图像中的位置。Predict the position of the spatial point corresponding to the first feature point in the current frame of the image according to the position and orientation information of the previous frame of the image taken by the photographing device and the position of the spatial point corresponding to the first feature point .
  16. 一种可移动平台,其特征在于,所述可移动平台包括:拍摄装置、处理器和存储器;A movable platform, characterized in that, the movable platform includes: a photographing device, a processor, and a memory;
    所述拍摄装置用于拍摄图像;The photographing device is used for photographing images;
    所述存储器用于存储计算机程序;The memory is used to store a computer program;
    所述处理器用于执行所述计算机程序并在执行所述计算机程序时,实现如下步骤:The processor is used to execute the computer program and when executing the computer program, implement the following steps:
    获取所述拍摄装置拍摄的当前帧图像;Acquiring the current frame image taken by the photographing device;
    在当前帧图像中对所述当前帧图像的上一帧图像中的第一特征点进行跟踪以获取所述当前图像帧中跟踪成功的第二特征点;Tracking the first feature point in the previous frame image of the current frame image in the current frame image to obtain the second feature point that is successfully tracked in the current image frame;
    确定所述第二特征点的数目;Determining the number of the second feature points;
    根据所述第二特征点的数目确定是否要在所述当前帧图像中提取新特征点。Determine whether to extract new feature points in the current frame image according to the number of the second feature points.
  17. 根据权利要求16所述的可移动平台,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The mobile platform according to claim 16, wherein the processor implements the following steps when executing the computer program:
    若所述第二特征点的数目大于或等于第一预设数目阈值时,则确定不在所述当前帧图像中提取新特征点;If the number of the second feature points is greater than or equal to the first preset number threshold, determining not to extract new feature points in the current frame image;
    否则,则确定要在所述当前帧图像中提取新特征点。Otherwise, it is determined to extract new feature points in the current frame image.
  18. 根据权利要求17所述的可移动平台,其特征在于,在所述当前帧图像中提取的新特征点的数目是根据所述第一预设数目阈值与所述第二特征点的数目之差确定的。The mobile platform according to claim 17, wherein the number of new feature points extracted in the current frame image is based on the difference between the first preset number threshold and the number of second feature points definite.
  19. 根据权利要求16-18任一项所述的可移动平台,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The movable platform according to any one of claims 16-18, wherein the processor implements the following steps when executing the computer program:
    根据第一预设尺寸对所述当前帧图像进行栅格化处理以获取多个栅格图像;Performing rasterization processing on the current frame image according to the first preset size to obtain multiple raster images;
    从所述多个栅格图像中确定目标栅格图像,其中,所述目标栅格图像中不包括所述第二特征点;Determining a target raster image from the plurality of raster images, wherein the target raster image does not include the second feature point;
    当确定要在所述当前帧图像提取新特征点时,从所述目标栅格图像中提取新特征点,其中,所述目标栅格图像至多提取一个新特征点。When it is determined that a new feature point is to be extracted from the current frame image, a new feature point is extracted from the target raster image, wherein at most one new feature point is extracted from the target raster image.
  20. 根据权利要求19所述的可移动平台,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The mobile platform according to claim 19, wherein the processor implements the following steps when executing the computer program:
    根据第二预设尺寸在所述当前帧图像中确定中心区域,其中,所述目标栅格图像包括位于所述中心区域内的第一目标栅格图像和位于所述中心区域外的第二目标栅格图像;A central area is determined in the current frame image according to a second preset size, wherein the target raster image includes a first target raster image located in the central area and a second target located outside the central area Raster image
    在所述第一目标栅格图像中提取新特征点。Extracting new feature points from the first target raster image.
  21. 根据权利要求20所述的可移动平台,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The mobile platform according to claim 20, wherein the processor implements the following steps when executing the computer program:
    按照预设的循环顺序分别对不同的第一目标栅格图像中的像素点进行检测以确定该像素点是否为候选特征点;Respectively detecting pixels in different first target raster images according to a preset cycle sequence to determine whether the pixel is a candidate feature point;
    将包括候选特征点的第一目标栅格图像中候选特征点的质量参数最高且高于预设特征点质量阈值的候选特征点确定为所述第一目标栅格图像的新特征点。The candidate feature point with the highest quality parameter of the candidate feature point in the first target raster image including the candidate feature point and higher than the preset feature point quality threshold is determined as the new feature point of the first target raster image.
  22. 根据权利要求21所述的可移动平台,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The mobile platform according to claim 21, wherein the processor implements the following steps when executing the computer program:
    当确定检测到第二预设数目的候选特征点时,不再对第一目标栅格图像中的像素点进行检测。When it is determined that the second preset number of candidate feature points are detected, the pixel points in the first target raster image are no longer detected.
  23. 根据权利要求20或21所述的可移动平台,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The movable platform according to claim 20 or 21, wherein the processor implements the following steps when executing the computer program:
    确定从所述第一目标栅格图像中提取到的新特征点数目是否大于或等于第三预设数目阈值;Determining whether the number of new feature points extracted from the first target raster image is greater than or equal to a third preset number threshold;
    当否时,在所述第二目标栅格图像中提取新特征点。When not, extract new feature points from the second target raster image.
  24. 根据权利要求23所述的可移动平台,其特征在于,所述第三预设数目阈值是根据第一预设数目阈值与所述第二特征点的数目之差确定的。The movable platform according to claim 23, wherein the third preset number threshold is determined according to the difference between the first preset number threshold and the number of the second feature points.
  25. 根据权利要求16-24任一项所述的可移动平台,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The movable platform according to any one of claims 16-24, wherein the processor implements the following steps when executing the computer program:
    获取所述可移动平台的状态信息,其中,所述可移动平台的状态信息包括所述可移动平台的运动状态参数;Acquiring state information of the movable platform, wherein the state information of the movable platform includes the motion state parameters of the movable platform;
    根据所述可移动平台的运动状态参数确定所述第二预设尺寸。The second preset size is determined according to the motion state parameter of the movable platform.
  26. 根据权利要求25所述的可移动平台,其特征在于,所述运动状态参数包括可移动平台的速度、加速度、角速度、角加速度、所述拍摄装置的角速度、所述拍摄装置的角加速度中的一种或多种。The movable platform according to claim 25, wherein the motion state parameters include the speed, acceleration, angular velocity, angular acceleration of the movable platform, the angular velocity of the photographing device, and the angular acceleration of the photographing device. One or more.
  27. 根据权利要求25或26所述的可移动平台,其特征在于,第二预设尺寸与所述运动状态参数负相关。The movable platform according to claim 25 or 26, wherein the second preset size is negatively related to the motion state parameter.
  28. 根据权利要求16-27任一项所述的可移动平台,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The movable platform according to any one of claims 16-27, wherein the processor implements the following steps when executing the computer program:
    在当前帧图像中确定上一帧图像中的第一特征点在当前帧图像中的跟踪区域;Determining, in the current frame of image, the tracking area of the first feature point in the previous frame of image in the current frame of image;
    在当前帧图像中的跟踪区域内对所述上一帧图像中的第一特征点进行跟踪。Tracking the first feature point in the previous frame of image in the tracking area in the current frame of image.
  29. 根据权利要求28所述的可移动平台,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The mobile platform according to claim 28, wherein the processor implements the following steps when executing the computer program:
    预测所述第一特征点对应的空间点在所述当前帧图像中的位置;Predicting the position of the spatial point corresponding to the first feature point in the current frame image;
    根据预测的位置确定所述上一帧图像中的第一特征点在当前帧图像中的 跟踪区域。The tracking area of the first feature point in the previous frame of image in the current frame of image is determined according to the predicted position.
  30. 根据权利要求29所述的可移动平台,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The mobile platform according to claim 29, wherein the processor implements the following steps when executing the computer program:
    根据所述拍摄装置在拍摄所述上一帧图像位姿信息和所述第一特征点对应的空间点的位置,预测所述第一特征点对应的空间点在所述当前帧图像中的位置。Predict the position of the spatial point corresponding to the first feature point in the current frame of the image according to the position and orientation information of the previous frame of the image taken by the photographing device and the position of the spatial point corresponding to the first feature point .
  31. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时使所述处理器实现如权利要求1-15任一项所述的提取特征点的方法。A computer-readable storage medium, characterized in that, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor realizes any one of claims 1-15. The method of extracting feature points.
PCT/CN2019/108856 2019-09-29 2019-09-29 Feature point extraction method, movable platform and storage medium WO2021056501A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2019/108856 WO2021056501A1 (en) 2019-09-29 2019-09-29 Feature point extraction method, movable platform and storage medium
CN201980033830.5A CN112154479A (en) 2019-09-29 2019-09-29 Method for extracting feature points, movable platform and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/108856 WO2021056501A1 (en) 2019-09-29 2019-09-29 Feature point extraction method, movable platform and storage medium

Publications (1)

Publication Number Publication Date
WO2021056501A1 true WO2021056501A1 (en) 2021-04-01

Family

ID=73891975

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/108856 WO2021056501A1 (en) 2019-09-29 2019-09-29 Feature point extraction method, movable platform and storage medium

Country Status (2)

Country Link
CN (1) CN112154479A (en)
WO (1) WO2021056501A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113674320A (en) * 2021-08-24 2021-11-19 湖南国科微电子股份有限公司 Visual navigation feature point acquisition method and device and computer equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112884840A (en) * 2021-03-29 2021-06-01 湖南国科微电子股份有限公司 Visual positioning method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104180818A (en) * 2014-08-12 2014-12-03 北京理工大学 Monocular vision mileage calculating device
US10136063B2 (en) * 2013-07-12 2018-11-20 Hanwha Aerospace Co., Ltd Image stabilizing method and apparatus
CN109978911A (en) * 2019-02-22 2019-07-05 青岛小鸟看看科技有限公司 A kind of characteristics of image point-tracking method and camera

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10136063B2 (en) * 2013-07-12 2018-11-20 Hanwha Aerospace Co., Ltd Image stabilizing method and apparatus
CN104180818A (en) * 2014-08-12 2014-12-03 北京理工大学 Monocular vision mileage calculating device
CN109978911A (en) * 2019-02-22 2019-07-05 青岛小鸟看看科技有限公司 A kind of characteristics of image point-tracking method and camera

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113674320A (en) * 2021-08-24 2021-11-19 湖南国科微电子股份有限公司 Visual navigation feature point acquisition method and device and computer equipment
CN113674320B (en) * 2021-08-24 2024-03-22 湖南国科微电子股份有限公司 Visual navigation feature point acquisition method and device and computer equipment

Also Published As

Publication number Publication date
CN112154479A (en) 2020-12-29

Similar Documents

Publication Publication Date Title
US9521391B2 (en) Settings of a digital camera for depth map refinement
US20210279444A1 (en) Systems and methods for depth map sampling
CN109388093B (en) Robot attitude control method and system based on line feature recognition and robot
EP3537378B1 (en) Image processing apparatus and method for object boundary stabilization in an image of a sequence of images
US10373380B2 (en) 3-dimensional scene analysis for augmented reality operations
US11398075B2 (en) Methods and systems for processing and colorizing point clouds and meshes
US9639943B1 (en) Scanning of a handheld object for 3-dimensional reconstruction
US20150098645A1 (en) Method, apparatus and system for selecting a frame
JP5985622B2 (en) Content adaptive system, method and apparatus for determining optical flow
CN109784250B (en) Positioning method and device of automatic guide trolley
WO2019085621A1 (en) Target tracking method and device, and tracker
US20170280130A1 (en) 2d video analysis for 3d modeling
KR102476022B1 (en) Face detection method and apparatus thereof
WO2021134285A1 (en) Image tracking processing method and apparatus, and computer device and storage medium
CN112270745B (en) Image generation method, device, equipment and storage medium
JP6817742B2 (en) Information processing device and its control method
WO2021056501A1 (en) Feature point extraction method, movable platform and storage medium
CN113837952A (en) Three-dimensional point cloud noise reduction method and device based on normal vector, computer readable storage medium and electronic equipment
CN109492521B (en) Face positioning method and robot
EP3044734B1 (en) Isotropic feature matching
CN116051736A (en) Three-dimensional reconstruction method, device, edge equipment and storage medium
CN111050027A (en) Lens distortion compensation method, device, equipment and storage medium
US20180150966A1 (en) System and method for estimating object size
CN111630569B (en) Binocular matching method, visual imaging device and device with storage function
CN109388131B (en) Robot attitude control method and system based on angular point feature recognition and robot

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19947253

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19947253

Country of ref document: EP

Kind code of ref document: A1