用OpenCVSharp 4.5 跑一遍 OpenCV官方教程
原 OpenCV 官方教程链接:OpenCV: AKAZE and ORB planar tracking
using System;
using System.Collections.Generic;
using OpenCvSharp;
namespace ConsoleApp1
{
class tutorial51 : ITutorial
{
public void Run()
{
int stats_update_period = 10;
string videoFile = @"I:\csharp\videos\blais.mp4";
VideoCapture video_in = new VideoCapture(videoFile);
if (video_in.IsOpened() == false)
{
Console.WriteLine("打开视频文件或摄像头出错");
return;
}
Stats stats = new Stats(), akaze_stats = new Stats(), orb_stats = new Stats();
AKAZE akaze = AKAZE.Create();
akaze.Threshold = 3e-4;
ORB orb = ORB.Create();
DescriptorMatcher matcher = DescriptorMatcher.C

本示例使用OpenCVSharp 4.5实现官方教程中的AKAZE和ORB平面跟踪功能。通过视频输入,选取感兴趣区域并跟踪该区域的变化,对比AKAZE与ORB两种特征检测方法的效果。
最低0.47元/天 解锁文章
711

被折叠的 条评论
为什么被折叠?



