CN109445453A - A kind of unmanned plane Real Time Compression tracking based on OpenCV - Google Patents
A kind of unmanned plane Real Time Compression tracking based on OpenCV Download PDFInfo
- Publication number
- CN109445453A CN109445453A CN201811063858.7A CN201811063858A CN109445453A CN 109445453 A CN109445453 A CN 109445453A CN 201811063858 A CN201811063858 A CN 201811063858A CN 109445453 A CN109445453 A CN 109445453A
- Authority
- CN
- China
- Prior art keywords
- target
- unmanned plane
- tracking
- opencv
- image
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
- 230000006835 compression Effects 0.000 title claims abstract description 18
- 238000007906 compression Methods 0.000 title claims abstract description 18
- 238000000034 method Methods 0.000 claims abstract description 25
- 238000001514 detection method Methods 0.000 claims abstract description 16
- 239000013598 vector Substances 0.000 claims abstract description 12
- 230000008569 process Effects 0.000 claims abstract description 8
- 238000012549 training Methods 0.000 claims abstract description 7
- 238000006073 displacement reaction Methods 0.000 claims description 9
- 239000000284 extract Substances 0.000 claims description 8
- 239000011159 matrix material Substances 0.000 claims description 7
- 230000009467 reduction Effects 0.000 claims description 6
- 238000012545 processing Methods 0.000 claims description 4
- 230000003287 optical effect Effects 0.000 claims description 2
- 238000005070 sampling Methods 0.000 claims 1
- 238000005259 measurement Methods 0.000 description 5
- 238000012544 monitoring process Methods 0.000 description 4
- 230000009466 transformation Effects 0.000 description 4
- 230000000007 visual effect Effects 0.000 description 4
- 238000004458 analytical method Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000010365 information processing Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000011217 control strategy Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000011946 reduction process Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05D—SYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
- G05D1/00—Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
- G05D1/10—Simultaneous control of position or course in three dimensions
- G05D1/101—Simultaneous control of position or course in three dimensions specially adapted for aircraft
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B7/00—Radio transmission systems, i.e. using radiation field
- H04B7/14—Relay systems
- H04B7/15—Active relay systems
- H04B7/185—Space-based or airborne stations; Stations for satellite systems
- H04B7/18502—Airborne stations
- H04B7/18506—Communications with or from aircraft, i.e. aeronautical mobile service
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/14—Picture signal circuitry for video frequency region
- H04N5/144—Movement detection
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/18—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
- H04N7/183—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a single remote source
- H04N7/185—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a single remote source from a mobile camera, e.g. for remote control
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Physics & Mathematics (AREA)
- Aviation & Aerospace Engineering (AREA)
- General Physics & Mathematics (AREA)
- Astronomy & Astrophysics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Automation & Control Theory (AREA)
- Image Analysis (AREA)
Abstract
一种基于OpenCV的无人机实时压缩跟踪方法,包括:选择无人机追踪目标后,将视频转化为图像帧,提取图像序列背景和目标的样本数据,进行初始帧处理,基于openCV对视频图像序列进行特征点检测以及匹配,提取待检测目标的特征向量;跟踪过程中,将经过处理的特征向量作为训练集对分类器进行训练,之后输入的每一帧图像都利用上一帧训练好的分类器进行训练,得出目标窗口实现追踪;根据跟踪目标的位置坐标计算出无人机与目标位置的实际水平距离的差值,输入单环位置环PID控制器,无人机通过位置环控制进行位置调整,实现对移动目标的跟踪。
A real-time compression tracking method for unmanned aerial vehicles based on OpenCV. The sequence is used for feature point detection and matching, and the feature vector of the target to be detected is extracted; during the tracking process, the processed feature vector is used as the training set to train the classifier, and then each frame of the input image is trained using the previous frame. The classifier is trained, and the target window is obtained to achieve tracking; the difference between the actual horizontal distance between the UAV and the target position is calculated according to the position coordinates of the tracking target, and the single-loop position loop PID controller is input, and the UAV is controlled by the position loop. Carry out position adjustment to achieve tracking of moving targets.
Description
技术领域technical field
本发明涉及智能信息处理和无人机追踪技术领域,具体为一种基于OpenCV的无人机实时压缩跟踪方法。The invention relates to the technical field of intelligent information processing and UAV tracking, in particular to a real-time compression tracking method for UAV based on OpenCV.
背景技术Background technique
基于视觉的移动目标跟踪技术,是指将机器人通过视觉传感器获得的图像序列进行分析,通常是进行目标检测,完成目标识别,最后对识别出的目标进行跟踪,获取目标的实时空间位置、目标尺寸大小、速度和加速度等信息,并能够得到移动目标的运动轨迹。由于基于图像的目标识别和跟踪算法成熟,跟踪成本低,精度高和抗干扰能力强等优点,因此在许多领域都有广泛而实际的应用。Vision-based moving target tracking technology refers to the analysis of the image sequence obtained by the robot through the vision sensor, usually to detect the target, complete the target recognition, and finally track the recognized target to obtain the real-time spatial position and target size of the target. Information such as size, speed and acceleration can be obtained, and the trajectory of the moving target can be obtained. Due to the mature image-based target recognition and tracking algorithms, low tracking cost, high accuracy and strong anti-interference ability, it has wide and practical applications in many fields.
随着无人机应用范围的逐渐扩大,对于无人机系统自主控制的要求也在不断提高,无人机自动控制系统通过感知外部环境进行智能信息处理,自动生成相应的控制策略,实现各种需求任务,并且具有有效而且快速的自适应能力,特别是无人机居高临下的视角,可以大范围监控地面情况,同时能快速到达人员不容易涉及的地方,高效的实施监控,降低了相应人员风险,这使得无人机开始广泛应用于安防行业,众所周知,可视化管理基本上依靠固定的监控设备完成,而随着用户对设备的深度应用,监控死角的问题不可回避,因此在一些环境恶劣的地方,摄像机等设备的安装布线及维护都是大问题,固定点视频监控在可视化管理领域需求多样化的趋势下,需要有像无人机航拍这样的新设备在特殊情况下提供技术保障。With the gradual expansion of the application scope of UAVs, the requirements for autonomous control of UAV systems are also increasing. The UAV automatic control system performs intelligent information processing by sensing the external environment, and automatically generates corresponding control strategies to achieve various Demand tasks, and have effective and fast adaptive capabilities, especially the UAV's condescending perspective, which can monitor the ground situation in a large range, and can quickly reach places that are not easily involved by personnel, effectively implement monitoring, and reduce the risk of corresponding personnel , which makes drones widely used in the security industry. As we all know, visual management is basically completed by fixed monitoring equipment. With the in-depth application of equipment by users, the problem of monitoring dead ends cannot be avoided. Therefore, in some places with harsh environments , The installation, wiring and maintenance of cameras and other equipment are big problems. Under the trend of diversified demands in the field of visual management of fixed-point video surveillance, new equipment such as drone aerial photography is required to provide technical support in special circumstances.
发明内容SUMMARY OF THE INVENTION
本发明的目的在于提供一种基于OpenCV的无人机实时压缩跟踪方法,解决上述背景中提出的问题。The purpose of the present invention is to provide a real-time compression tracking method for unmanned aerial vehicles based on OpenCV to solve the problems raised in the above background.
本发明主要是利用移动物体检测算法、目标追踪算法和跟踪控制器层面进行需求分析,设计目标检测和跟踪算法,采用基于特征点的移动物体检测器和基于压缩感知理论的目标追踪以提高算法的跟踪精度和抗短期的遮挡能力,设计单环位置环PID控制器,将无人机和目标之间实际水平方向距离作为控制器的输入,实现无人机追踪移动的目标。The invention mainly uses the moving object detection algorithm, the target tracking algorithm and the tracking controller level to analyze the demand, designs the target detection and tracking algorithm, adopts the moving object detector based on feature points and the target tracking based on the compressed sensing theory to improve the performance of the algorithm. Tracking accuracy and anti-short-term occlusion ability, a single-loop position loop PID controller is designed, and the actual horizontal distance between the UAV and the target is used as the input of the controller to achieve the UAV tracking the moving target.
一种基于OpenCV的无人机实时压缩跟踪方法,所述方法包括:A real-time compression tracking method for unmanned aerial vehicles based on OpenCV, the method includes:
步骤S1:无人机起飞,开始采集图像,回传视频数据到PC端;Step S1: the drone takes off, starts to collect images, and sends back video data to the PC;
步骤S2:选择无人机追踪目标后,将视频转化为图像帧;Step S2: After selecting the drone to track the target, convert the video into an image frame;
步骤S3:基于openCV对视频图像序列进行特征点检测以及匹配,提取待检测目标的特征向量;Step S3: Perform feature point detection and matching on the video image sequence based on openCV, and extract the feature vector of the target to be detected;
步骤S4:提取图像序列背景和目标的样本数据,进行初始帧处理;Step S4: extract the sample data of the image sequence background and the target, and perform initial frame processing;
步骤S5:利用稀疏测量矩阵对特征向量进行压缩、变换;Step S5: use the sparse measurement matrix to compress and transform the eigenvectors;
步骤S6:跟踪过程中,将经过处理的特征向量作为训练集对分类器进行训练,之后输入的每一帧图像都利用上一帧训练好的分类器进行训练,得出目标窗口实现追踪;Step S6: in the tracking process, the processed feature vector is used as a training set to train the classifier, and then each frame of image input is trained by using the classifier trained in the previous frame to obtain the target window for tracking;
步骤S7:得到跟踪目标后,计算出目标的位置坐标;Step S7: after obtaining the tracking target, calculate the position coordinates of the target;
步骤S8:根据跟踪目标的位置坐标,结合无人机高度数据计算出两者在垂直方向上的水平位移;Step S8: Calculate the horizontal displacement of the two in the vertical direction according to the position coordinates of the tracking target and combined with the height data of the UAV;
步骤S9:将无人机和移动目标的实际水平距离的差值作为无人机位置控制的PID输入参数,无人机通过位置环控制进行位置调整,实现对移动目标的跟踪。Step S9: The difference between the actual horizontal distance between the UAV and the moving target is used as the PID input parameter of the UAV position control, and the UAV adjusts the position through the position loop control to realize the tracking of the moving target.
进一步地,步骤S3中,调用openCV的Fast Feature Detector函数设置检测阈值提取待检测目标的角点颜色、纹理等特征,建立目标模板,通过和实时视频流中对应目标进行特征匹配进而进行相似性判断。Further, in step S3, the Fast Feature Detector function of openCV is called to set the detection threshold to extract the corner color, texture and other features of the target to be detected, and a target template is established, and the similarity is judged by feature matching with the corresponding target in the real-time video stream. .
进一步地,运用surf方法,调用openCV中的Feature Detector接口来发现感兴趣点,使用Surf Feature Detector以及其函数detect来实现移动物体的检测过程。Further, using the surf method, call the Feature Detector interface in openCV to find points of interest, and use the Surf Feature Detector and its function detect to realize the detection process of moving objects.
进一步地,步骤S5中,首先在不同的样本区域范围内随机抽取不同尺度图像下的特征点信息,之后使用Flann Based Matcher接口以及函数FLANN,实现快速高效匹配,将高维特征信息进行降维后,在相应的压缩域中建立特定的表观模型。Further, in step S5, first randomly extract feature point information under images of different scales in different sample areas, and then use the Flann Based Matcher interface and the function FLANN to achieve fast and efficient matching, and reduce the dimension of the high-dimensional feature information. , build a specific appearance model in the corresponding compressed domain.
进一步地,在初始帧的时候,采样得到若干张目标和背景的样本数据,然后对其进行多尺度变换,再通过稀疏测量矩阵对多尺度图像特征进行降维,然后通过降维后的特征去训练朴素贝叶斯分类器。Further, in the initial frame, several pieces of sample data of the target and the background are sampled, and then multi-scale transformation is performed on them, and then the multi-scale image features are dimensionally reduced through the sparse measurement matrix, and then the dimensionality-reduced features are removed. Train a Naive Bayes classifier.
进一步地,步骤S9中,所述位置环控制包括以下步骤:Further, in step S9, the position loop control includes the following steps:
S1:确定摄像头的焦距,假设一个宽度为w的目标。将这个目标放置在距离相机为d的位置并测量物体的像素宽度p,得出相机焦距公式:S1: Determine the focal length of the camera, assuming a target of width w. Place this target at a distance d from the camera and measure the pixel width p of the object to get the camera focal length formula:
f=(p×d)/wf=(p×d)/w
S2:通过目标在图像中的像素位置计算得到无人机与目标的水平位移,设目标在图像平面的像素位置为(u,v),则目标和无人机之间的水平位移(x,y)表示为:S2: Calculate the horizontal displacement between the drone and the target by calculating the pixel position of the target in the image. Set the pixel position of the target on the image plane as (u, v), then the horizontal displacement between the target and the drone (x, y) is expressed as:
Z为无人机高度f为相机焦距,β为摄像机的俯仰角,α为物像两点连线和相机光轴所成的角度,(u0,v0)为图像中心点像素坐标。Z is the height of the drone, f is the focal length of the camera, β is the pitch angle of the camera, α is the angle formed by the line connecting the two points of the object image and the optical axis of the camera, and (u0, v0) is the pixel coordinate of the image center point.
S3:将无人机和移动目标的实际水平距离的差值作为无人机位置控制的PID输入参数,无人机通过位置环控制进行位置调整,对于无人机的位置控制,假设L作为目标位置和现时刻位置的差值,则输出控制量φk:与L满足以下PID控制关系:S3: The difference between the actual horizontal distance between the UAV and the moving target is used as the PID input parameter of the UAV position control. The UAV adjusts the position through the position loop control. For the position control of the UAV, assume L as the target The difference between the position and the current position, then the output control amount φ k : and L satisfy the following PID control relationship:
S4:将无人机位置控制的理想控制量φk和实际测量值之差设为偏差量φ偏差k,所述偏差量和最终的控制输出φfinalk满足以下PID控制关系:S4: Set the difference between the ideal control amount φ k of the UAV position control and the actual measured value as the deviation amount φ deviation k , and the deviation amount and the final control output φ finalk satisfy the following PID control relationship:
过一个稀疏测量矩阵对多尺度图像特征进行降维,然后通过降维后的特征去训练朴素贝叶斯分类器,将追踪问题被转化成使用朴素贝叶斯分类器的二元性分类问题。The multi-scale image features are dimensionally reduced by a sparse measurement matrix, and then the naive Bayes classifier is trained through the reduced dimensionality features, and the tracking problem is transformed into a binary classification problem using the naive Bayes classifier.
本发明目的在于提供一套基于自动控制算法并结合高精度、强抗干扰性的目标追踪方法的无人机实时跟踪方法,可克服普通视觉传感器位置固定、视场范围小等不足,能够非常有效的扩大视觉传感器的视场范围。搭载了视觉传感器的旋翼机型无人机,可实时对地面和空中进行监测,也可以对移动目标进行监视和跟踪,可有效完成许多监控任务。The purpose of the present invention is to provide a set of real-time tracking methods for UAVs based on automatic control algorithms combined with high-precision, strong anti-interference target tracking methods, which can overcome the shortcomings of ordinary visual sensors such as fixed position and small field of view, and can be very effective. to expand the field of view of the vision sensor. Rotor-type UAVs equipped with visual sensors can monitor the ground and air in real time, as well as monitor and track moving targets, and can effectively complete many monitoring tasks.
有益效果:Beneficial effects:
1、本发明通过多尺度图像特征降维,将跟踪目标和无人机之间的多维度差值转化为无人机与目标位置的实际水平距离的差值,输入单环位置环PID控制器,实现对移动目标的实时跟踪,实现目标跟踪的数据简化。1. The present invention converts the multi-dimensional difference between the tracking target and the UAV into the difference between the actual horizontal distance between the UAV and the target position through multi-scale image feature dimensionality reduction, and inputs the single-loop position loop PID controller. , to achieve real-time tracking of moving targets, and to simplify the data of target tracking.
2、本发明基于openCV建立目标模板,提取特征向量,提高追踪精度并增强抗干扰性,减少复杂背景对其追踪的影响,采用压缩感知算法减少数据的计算量,加快目标追踪速度。2. The present invention establishes a target template based on openCV, extracts feature vectors, improves tracking accuracy and enhances anti-interference, reduces the impact of complex backgrounds on its tracking, adopts compressed sensing algorithm to reduce the amount of data calculation, and accelerates the target tracking speed.
3、采用嵌入式硬件和图像处理结合的方式,数据收发效率高,且传输稳定,便于数据的观察与分析。3. Using the combination of embedded hardware and image processing, the data transmission and reception efficiency is high, and the transmission is stable, which is convenient for data observation and analysis.
附图说明Description of drawings
图1为本发明的总体系统框架图。FIG. 1 is an overall system frame diagram of the present invention.
图2为移动物体检测算法流程图。Figure 2 is a flowchart of a moving object detection algorithm.
图3为压缩感知算法模型。Figure 3 shows the compressed sensing algorithm model.
图4为飞行器检测控制器设计框架。Figure 4 shows the design framework of the aircraft detection controller.
具体实施方式Detailed ways
为了使本发明实现的技术手段、创作特征、达成目的与功效易于明白了解,下面结合具体图示,进一步阐述本发明。In order to make it easy to understand the technical means, creation features, achieved goals and effects of the present invention, the present invention will be further described below with reference to the specific figures.
实施例1Example 1
总体框架图如图1所示,首先由遥控器控制无人机起飞并到达追踪目标附近,开启追踪模式后,无人机获取地面图像并通过图传回传到PC端,PC端接收到图像后基于openCV对视频图像序列进行特征点检测以及匹配,提取待检测目标的特征向量,经过多尺度变换后,利用压缩感知理论对多尺度图像特征进行降维,然后通过降维后的特征去训练朴素贝叶斯分类器,朴素贝叶斯分类器进行分类后得到跟踪目标窗口后,通过目标在图像中的像素点坐标和实际的高度距离转化成二者在垂直方向上的水平实际位移,将无人机和移动目标的实际水平距离的差值作为无人机位置控制的PID输入参数,无人机通过位置环控制进行位置调整,实现对移动目标的跟踪。The overall frame diagram is shown in Figure 1. First, the drone is controlled by the remote control to take off and reach the vicinity of the tracking target. After the tracking mode is turned on, the drone obtains the ground image and transmits it back to the PC through the image, and the PC receives the image. Then, based on openCV, the feature point detection and matching of the video image sequence are carried out, and the feature vector of the target to be detected is extracted. After multi-scale transformation, the multi-scale image features are dimensionally reduced by using compressed sensing theory, and then the dimensionality-reduced features are used for training. Naive Bayes classifier, after the naive Bayes classifier is classified to obtain the tracking target window, the pixel coordinates and the actual height distance of the target in the image are converted into the horizontal actual displacement of the two in the vertical direction. The difference between the actual horizontal distance between the UAV and the moving target is used as the PID input parameter of the UAV position control. The UAV adjusts the position through the position loop control to realize the tracking of the moving target.
基于OpenCV的无人机实时压缩跟踪方法的具体操作步骤如下,移动物体检测流程和压缩感知算法模型分别如图2、图3所示。The specific operation steps of the OpenCV-based UAV real-time compression tracking method are as follows. The moving object detection process and the compressed sensing algorithm model are shown in Figure 2 and Figure 3 respectively.
具体步骤为:The specific steps are:
步骤S1:无人机起飞,开始采集图像,回传视频数据到PC端;Step S1: the drone takes off, starts to collect images, and sends back video data to the PC;
步骤S2:选择无人机追踪目标后,将视频转化为图像帧;Step S2: After selecting the drone to track the target, convert the video into an image frame;
步骤S3:基于openCV对视频图像序列进行特征点检测以及匹配,提取待检测目标的特征向量;Step S3: Perform feature point detection and matching on the video image sequence based on openCV, and extract the feature vector of the target to be detected;
步骤S4:提取图像序列背景和目标的样本数据,进行初始帧处理;Step S4: extract the sample data of the image sequence background and the target, and perform initial frame processing;
步骤S5:利用稀疏测量矩阵对特征向量进行压缩、变换;Step S5: use the sparse measurement matrix to compress and transform the eigenvectors;
步骤S6:跟踪过程中,将经过处理的特征向量作为训练集对分类器进行训练,之后输入的每一帧图像都利用上一帧训练好的分类器进行训练,得出目标窗口实现追踪;Step S6: in the tracking process, the processed feature vector is used as a training set to train the classifier, and then each frame of image input is trained by using the classifier trained in the previous frame to obtain the target window for tracking;
步骤S7:得到跟踪目标后,计算出目标的位置坐标;Step S7: after obtaining the tracking target, calculate the position coordinates of the target;
步骤S8:根据跟踪目标的位置坐标,结合无人机高度数据计算出两者在垂直方向上的水平位移;Step S8: Calculate the horizontal displacement of the two in the vertical direction according to the position coordinates of the tracking target and combined with the height data of the UAV;
步骤S9:将无人机和移动目标的实际水平距离的差值作为无人机位置控制的PID输入参数,无人机通过位置环控制进行位置调整,实现对移动目标的跟踪。Step S9: The difference between the actual horizontal distance between the UAV and the moving target is used as the PID input parameter of the UAV position control, and the UAV adjusts the position through the position loop control to realize the tracking of the moving target.
需要指出的是,基于OpenCV的无人机实时压缩跟踪方法中特征点检测和匹配是指通过调用opencv的Fast Feature Detector函数设置检测阈值提取待检测目标的角点颜色、纹理等特征,建立目标模板,通过和实时视频流中对应目标进行特征匹配进而进行相似性判断,具体流程如图2所示。It should be pointed out that the feature point detection and matching in the OpenCV-based UAV real-time compression tracking method refers to the extraction of the corner color, texture and other features of the target to be detected by calling the Fast Feature Detector function of opencv to set the detection threshold, and establish the target template. , through feature matching with the corresponding target in the real-time video stream to determine the similarity, and the specific process is shown in Figure 2.
需要指出的是,基于OpenCV的无人机实时压缩跟踪方法中压缩感知理论是指在不同的样本区域范围内随机抽取不同尺度图像下的特征点信息;之后使用Flann BasedMatcher接口以及函数FLANN,实现快速高效匹配,将高维特征信息进行降维后,在相应的压缩域中建立特定的表观模型。It should be pointed out that the compressed sensing theory in the real-time compression tracking method of UAV based on OpenCV refers to randomly extracting feature point information under images of different scales in different sample areas; then use the Flann BasedMatcher interface and the function FLANN to achieve fast Efficient matching, after dimensionality reduction of high-dimensional feature information, a specific appearance model is established in the corresponding compressed domain.
需要指出的是,基于OpenCV的无人机实时压缩跟踪方法中实时压缩感知追踪是指首先通过Flann函数对高维特征和大数据集进行最近邻搜索,快速匹配后对其进行降维、变换,然后将经过处理的特征向量作为训练集对分类器进行训练,之后输入的每一帧图像都利用上一帧训练好的分类器进行训练,得出目标窗口实现追踪。It should be pointed out that the real-time compressed sensing tracking in the real-time compression tracking method of UAV based on OpenCV refers to the nearest neighbor search for high-dimensional features and large data sets through the Flann function, and then dimensionality reduction and transformation are performed after fast matching. Then, the processed feature vector is used as a training set to train the classifier, and then each frame of the input image is trained using the classifier trained on the previous frame, and the target window is obtained to achieve tracking.
需要指出的是,基于OpenCV的无人机实时压缩跟踪方法中在初始帧的时候,采样得到若干张目标和背景的样本数据,然后对其进行多尺度变换,再通过一个稀疏测量矩阵对多尺度图像特征进行降维,然后通过降维后的特征去训练朴素贝叶斯分类器,稀疏降维过程如图3所示。It should be pointed out that in the real-time compression tracking method of UAV based on OpenCV, at the initial frame, several pieces of sample data of the target and background are sampled, and then multi-scale transformation is performed on them, and then the multi-scale data is analyzed by a sparse measurement matrix. The image features are dimensionally reduced, and then the naive Bayes classifier is trained through the dimensionality-reduced features. The sparse dimensionality reduction process is shown in Figure 3.
需要指出的是,基于OpenCV的无人机实时压缩跟踪方法中通过朴素贝叶斯分类器进行分类后得到跟踪目标窗口后,通过目标在图像中的像素点坐标和实际的高度距离转化成二者在垂直方向上的水平实际位移,将无人机和移动目标的实际水平距离的差值作为无人机位置控制的PID输入参数,无人机通过位置环控制进行位置调整,实现对移动目标的跟踪,过程如图4所示。It should be pointed out that, in the real-time compression tracking method of UAV based on OpenCV, after the tracking target window is obtained after classification by the naive Bayes classifier, the pixel coordinates of the target in the image and the actual height distance are converted into two. For the actual horizontal displacement in the vertical direction, the difference between the actual horizontal distance between the UAV and the moving target is used as the PID input parameter of the UAV position control. The tracking process is shown in Figure 4.
以上显示和描述了本发明的基本原理和主要特征及本发明的优点,本发明不受上述实施例的限制,上述实施例和说明书中描述的只是说明本发明的原理,在不脱离本发明精神和范围的前提下,本发明还会有各种变化和改进,这些变化和改进都落入要求保护的本发明范围内,本发明要求保护范围由所附的权利要求书及其等效物界定。The above shows and describes the basic principles and main features of the present invention and the advantages of the present invention. The present invention is not limited by the above-mentioned embodiments. The above-mentioned embodiments and descriptions only illustrate the principles of the present invention without departing from the spirit of the present invention. Under the premise of and scope, the present invention will also have various changes and improvements, and these changes and improvements all fall within the scope of the claimed invention, and the claimed scope of the present invention is defined by the appended claims and their equivalents .
Claims (6)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811063858.7A CN109445453A (en) | 2018-09-12 | 2018-09-12 | A kind of unmanned plane Real Time Compression tracking based on OpenCV |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811063858.7A CN109445453A (en) | 2018-09-12 | 2018-09-12 | A kind of unmanned plane Real Time Compression tracking based on OpenCV |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN109445453A true CN109445453A (en) | 2019-03-08 |
Family
ID=65532531
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201811063858.7A Pending CN109445453A (en) | 2018-09-12 | 2018-09-12 | A kind of unmanned plane Real Time Compression tracking based on OpenCV |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109445453A (en) |
Cited By (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110244756A (en) * | 2019-04-29 | 2019-09-17 | 福州大学 | Cooperative obstacle avoidance method for UAV fast tracking |
| CN110262529A (en) * | 2019-06-13 | 2019-09-20 | 桂林电子科技大学 | A kind of monitoring unmanned method and system based on convolutional neural networks |
| CN110298866A (en) * | 2019-06-06 | 2019-10-01 | 武汉易科空间信息技术股份有限公司 | Ground object tracking and system based on unmanned plane image technology |
| CN111311641A (en) * | 2020-02-25 | 2020-06-19 | 重庆邮电大学 | A UAV target tracking control method |
| CN111476116A (en) * | 2020-03-24 | 2020-07-31 | 南京新一代人工智能研究院有限公司 | Rotor unmanned aerial vehicle system for vehicle detection and tracking and detection and tracking method |
| CN113079342A (en) * | 2020-01-03 | 2021-07-06 | 深圳市春盛海科技有限公司 | Target tracking method and system based on high-resolution image device |
| CN113156991A (en) * | 2021-02-05 | 2021-07-23 | 北京林业大学 | Flight evaluation system and method based on small multi-rotor aircraft |
| CN113763426A (en) * | 2021-08-30 | 2021-12-07 | 北京理工大学 | Reliable target tracking method in rapid intersection process |
| CN113848979A (en) * | 2021-10-12 | 2021-12-28 | 苏州大学 | Feedforward compensation PID control-based unmanned aerial vehicle complex dynamic target tracking method |
| CN114184086A (en) * | 2021-12-13 | 2022-03-15 | 绵阳久强智能装备有限公司 | Photoelectric tracking image alignment method for anti-sniper robot |
| CN114466180A (en) * | 2021-12-29 | 2022-05-10 | 北京奕斯伟计算技术有限公司 | Camera testing method, testing device, mounting method and mounting device |
| CN115550549A (en) * | 2022-09-16 | 2022-12-30 | 苏州世利安科技有限公司 | Intelligent region of interest eagle eye observation method based on unmanned aerial vehicle |
| CN119863381A (en) * | 2025-03-24 | 2025-04-22 | 北京智能车联产业创新中心有限公司 | Method and device for eliminating high-altitude image dithering based on static frame characteristics |
Citations (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103544483A (en) * | 2013-10-25 | 2014-01-29 | 合肥工业大学 | United target tracking method based on local sparse representation and system thereof |
| CN103679754A (en) * | 2013-12-20 | 2014-03-26 | 河北汉光重工有限责任公司 | Real-time target searching and tracking technique |
| CN104156978A (en) * | 2014-07-04 | 2014-11-19 | 合肥工业大学 | Multi-target dynamic following method based on balloon platform |
| CN105389593A (en) * | 2015-11-16 | 2016-03-09 | 上海交通大学 | Image object recognition method based on SURF |
| WO2016131300A1 (en) * | 2015-07-22 | 2016-08-25 | 中兴通讯股份有限公司 | Adaptive cross-camera cross-target tracking method and system |
| CN106447680A (en) * | 2016-11-23 | 2017-02-22 | 湖南华诺星空电子技术有限公司 | Method for radar and vision fused target detecting and tracking in dynamic background environment |
| CN106683119A (en) * | 2017-01-09 | 2017-05-17 | 河北工业大学 | Moving vehicle detecting method based on aerially photographed video images |
| CN106774436A (en) * | 2017-02-27 | 2017-05-31 | 南京航空航天大学 | The control system and method for the rotor wing unmanned aerial vehicle tenacious tracking target of view-based access control model |
| CN107316030A (en) * | 2017-07-04 | 2017-11-03 | 西北工业大学深圳研究院 | Unmanned plane is to terrain vehicle automatic detection and sorting technique |
| CN107798691A (en) * | 2017-08-30 | 2018-03-13 | 西北工业大学 | A kind of unmanned plane independent landing terrestrial reference real-time detecting and tracking method of view-based access control model |
| CN107918772A (en) * | 2017-12-10 | 2018-04-17 | 北京工业大学 | Method for tracking target based on compressive sensing theory and gcForest |
| CN108510521A (en) * | 2018-02-27 | 2018-09-07 | 南京邮电大学 | A kind of dimension self-adaption method for tracking target of multiple features fusion |
-
2018
- 2018-09-12 CN CN201811063858.7A patent/CN109445453A/en active Pending
Patent Citations (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103544483A (en) * | 2013-10-25 | 2014-01-29 | 合肥工业大学 | United target tracking method based on local sparse representation and system thereof |
| CN103679754A (en) * | 2013-12-20 | 2014-03-26 | 河北汉光重工有限责任公司 | Real-time target searching and tracking technique |
| CN104156978A (en) * | 2014-07-04 | 2014-11-19 | 合肥工业大学 | Multi-target dynamic following method based on balloon platform |
| WO2016131300A1 (en) * | 2015-07-22 | 2016-08-25 | 中兴通讯股份有限公司 | Adaptive cross-camera cross-target tracking method and system |
| CN105389593A (en) * | 2015-11-16 | 2016-03-09 | 上海交通大学 | Image object recognition method based on SURF |
| CN106447680A (en) * | 2016-11-23 | 2017-02-22 | 湖南华诺星空电子技术有限公司 | Method for radar and vision fused target detecting and tracking in dynamic background environment |
| CN106683119A (en) * | 2017-01-09 | 2017-05-17 | 河北工业大学 | Moving vehicle detecting method based on aerially photographed video images |
| CN106774436A (en) * | 2017-02-27 | 2017-05-31 | 南京航空航天大学 | The control system and method for the rotor wing unmanned aerial vehicle tenacious tracking target of view-based access control model |
| CN107316030A (en) * | 2017-07-04 | 2017-11-03 | 西北工业大学深圳研究院 | Unmanned plane is to terrain vehicle automatic detection and sorting technique |
| CN107798691A (en) * | 2017-08-30 | 2018-03-13 | 西北工业大学 | A kind of unmanned plane independent landing terrestrial reference real-time detecting and tracking method of view-based access control model |
| CN107918772A (en) * | 2017-12-10 | 2018-04-17 | 北京工业大学 | Method for tracking target based on compressive sensing theory and gcForest |
| CN108510521A (en) * | 2018-02-27 | 2018-09-07 | 南京邮电大学 | A kind of dimension self-adaption method for tracking target of multiple features fusion |
Non-Patent Citations (1)
| Title |
|---|
| 尤智,刘惠义: "基于FAST-SURF的移动端实时特征检测匹配算法", 《信息技术》 * |
Cited By (20)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110244756B (en) * | 2019-04-29 | 2021-09-24 | 福州大学 | UAV fast tracking collaborative obstacle avoidance method |
| CN110244756A (en) * | 2019-04-29 | 2019-09-17 | 福州大学 | Cooperative obstacle avoidance method for UAV fast tracking |
| CN110298866A (en) * | 2019-06-06 | 2019-10-01 | 武汉易科空间信息技术股份有限公司 | Ground object tracking and system based on unmanned plane image technology |
| CN110262529B (en) * | 2019-06-13 | 2022-06-03 | 桂林电子科技大学 | A method and system for unmanned aerial vehicle monitoring based on convolutional neural network |
| CN110262529A (en) * | 2019-06-13 | 2019-09-20 | 桂林电子科技大学 | A kind of monitoring unmanned method and system based on convolutional neural networks |
| CN113079342A (en) * | 2020-01-03 | 2021-07-06 | 深圳市春盛海科技有限公司 | Target tracking method and system based on high-resolution image device |
| CN111311641A (en) * | 2020-02-25 | 2020-06-19 | 重庆邮电大学 | A UAV target tracking control method |
| CN111311641B (en) * | 2020-02-25 | 2023-06-09 | 重庆邮电大学 | A tracking control method for UAV target |
| CN111476116A (en) * | 2020-03-24 | 2020-07-31 | 南京新一代人工智能研究院有限公司 | Rotor unmanned aerial vehicle system for vehicle detection and tracking and detection and tracking method |
| CN113156991B (en) * | 2021-02-05 | 2023-02-17 | 北京林业大学 | A flight evaluation system and method based on a small multi-rotor aircraft |
| CN113156991A (en) * | 2021-02-05 | 2021-07-23 | 北京林业大学 | Flight evaluation system and method based on small multi-rotor aircraft |
| CN113763426A (en) * | 2021-08-30 | 2021-12-07 | 北京理工大学 | Reliable target tracking method in rapid intersection process |
| CN113848979A (en) * | 2021-10-12 | 2021-12-28 | 苏州大学 | Feedforward compensation PID control-based unmanned aerial vehicle complex dynamic target tracking method |
| CN113848979B (en) * | 2021-10-12 | 2023-01-17 | 苏州大学 | Complex dynamic target tracking method for UAV based on feed-forward compensation PID control |
| CN114184086A (en) * | 2021-12-13 | 2022-03-15 | 绵阳久强智能装备有限公司 | Photoelectric tracking image alignment method for anti-sniper robot |
| CN114184086B (en) * | 2021-12-13 | 2023-10-03 | 绵阳久强智能装备有限公司 | Photoelectric tracking image alignment method for anti-sniper robot |
| CN114466180A (en) * | 2021-12-29 | 2022-05-10 | 北京奕斯伟计算技术有限公司 | Camera testing method, testing device, mounting method and mounting device |
| CN115550549A (en) * | 2022-09-16 | 2022-12-30 | 苏州世利安科技有限公司 | Intelligent region of interest eagle eye observation method based on unmanned aerial vehicle |
| CN119863381A (en) * | 2025-03-24 | 2025-04-22 | 北京智能车联产业创新中心有限公司 | Method and device for eliminating high-altitude image dithering based on static frame characteristics |
| CN119863381B (en) * | 2025-03-24 | 2025-06-10 | 北京智能车联产业创新中心有限公司 | Method and device for eliminating high-altitude image jitter based on static frame feature |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109445453A (en) | A kind of unmanned plane Real Time Compression tracking based on OpenCV | |
| CN109887040B (en) | Active sensing method and system of moving target for video surveillance | |
| CN111160297B (en) | Pedestrian Re-identification Method and Device Based on Residual Attention Mechanism Spatio-temporal Joint Model | |
| CN108111818B (en) | Method and device for active perception of moving target based on multi-camera collaboration | |
| CN111862201B (en) | A relative pose estimation method for spatial non-cooperative targets based on deep learning | |
| CN106570820B (en) | A monocular vision 3D feature extraction method based on quadrotor UAV | |
| CN106446930B (en) | Robot working scene recognition method based on deep convolutional neural network | |
| CN111754552A (en) | A multi-camera cooperative target tracking method based on deep learning | |
| CA3100569A1 (en) | Ship identity recognition method base on fusion of ais data and video data | |
| CN110378259A (en) | A kind of multiple target Activity recognition method and system towards monitor video | |
| CN105930790B (en) | Human behavior recognition method based on kernel sparse coding | |
| CN107705322A (en) | Motion estimate tracking and system | |
| CN103049751A (en) | Improved weighting region matching high-altitude video pedestrian recognizing method | |
| Momeni-k et al. | Height estimation from a single camera view | |
| KR20140095333A (en) | Method and apparratus of tracing object on image | |
| CN109993103A (en) | A Human Behavior Recognition Method Based on Point Cloud Data | |
| CN111709968A (en) | A low-altitude target detection and tracking method based on image processing | |
| Saito et al. | People detection and tracking from fish-eye image based on probabilistic appearance model | |
| CN101908150B (en) | Human body detection method | |
| Dai et al. | Overview of UAV target detection algorithms based on deep learning | |
| JP2018120283A (en) | Information processing apparatus, information processing method, and program | |
| CN107292908A (en) | Pedestrian tracting method based on KLT feature point tracking algorithms | |
| Jinze et al. | 3D laser point cloud clustering method based on image information constraints | |
| CN105930789A (en) | Human body behavior recognition based on logarithmic Euclidean space BOW (bag of words) model | |
| CN112351181A (en) | Intelligent camera based on CMOS chip and ZYNQ system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190308 |
|
| RJ01 | Rejection of invention patent application after publication |