演示如何为桌面和小型嵌入式系统(如 Raspberry Pi)编写一些图像处理过滤器;使用 SfM 模块将场景重建为稀疏点云,包括相机位姿,以及如何使用多视图立体获取密集点云;使用人脸模块进行人脸界标(也称为人脸标记)检测的过程;图像分割和特征提取、模式识别基础知识和两种重要的模式识别算法,支持向量机 (SVM) 和深度神经网络 (DNN);在图像上检测人脸的不同技术,从使用具有 Haar 特征的级联分类器的更经典算法到采用深度学习的新技术;使用 OpenCV.js 为 Web 开发计算机视觉算法的新方法,OpenCV.js 是用于 JavaScript 的 OpenCV 的编译版本;使用 OpenCV 的 ArUco 模块、Android 的 Camera2 API 和 JMonkeyEngine 3D 游戏引擎在 Android 生态系统中实现增强现实 (AR) 应用程序;使用 OpenCV 的 iOS 预编译库在 iPhone 上构建全景图像拼接应用程序。
Raspberry Pi图像处理演示如何为桌面和小型嵌入式系统(如 Raspberry Pi)编写一些图像处理过滤器;
3D图像重建使用 SfM 模块将场景重建为稀疏点云,包括相机位姿,以及如何使用多视图立体获取密集点云
#include #include面部界标检测#include #include #define CERES_FOUND true #include #include #include #include #include #include #include #include #include #include #include #define _USE_OPENCV true #include using namespace cv; using namespace std; namespace fs = boost::filesystem; class StructureFromMotion { public: StructureFromMotion(const string& dir, const float matchSurvivalRate = 0.5f, const bool viz = false, const string mvs = "", const string cloud = "", const bool saveDebug = false) : PAIR_MATCH_SURVIVAL_RATE(matchSurvivalRate) , visualize(viz) , saveMVS(mvs) , saveCloud(cloud) , saveDebugVisualizations(saveDebug) { findImagesInDiretcory(dir); } void runSfM() { extractFeatures(); matchFeatures(); buildTracks(); reconstructFromTracks(); if (visualize) { visualize3D(); } if (saveMVS != "") { saveToMVSFile(); } if (saveCloud != "") { CV_LOG_INFO(TAG, "Save point cloud to: " + saveCloud); viz::writeCloud(saveCloud, pointCloud, pointCloudColor); } } private: void findImagesInDiretcory(const string& dir) { CV_LOG_INFO(TAG, "Finding images in " + dir); utils::fs::glob(dir, "*.jpg", imagesFilenames); utils::fs::glob(dir, "*.JPG", imagesFilenames); utils::fs::glob(dir, "*.png", imagesFilenames); utils::fs::glob(dir, "*.PNG", imagesFilenames); std::sort(imagesFilenames.begin(), imagesFilenames.end()); CV_LOG_INFO(TAG, "Found " + std::to_string(imagesFilenames.size()) + " images"); CV_LOG_INFO(TAG, "Reading images..."); for (const auto& i : imagesFilenames) { CV_LOG_INFO(TAG, i); images[i] = imread(i); imageIDs[i] = images.size() - 1; } } void extractFeatures() { CV_LOG_INFO(TAG, "Extract Features"); auto detector = AKAZE::create(); auto extractor = AKAZE::create(); for (const auto& i : imagesFilenames) { Mat grayscale; cvtColor(images[i], grayscale, COLOR_BGR2GRAY); detector->detect(grayscale, keypoints[i]); extractor->compute(grayscale, keypoints[i], descriptors[i]); CV_LOG_INFO(TAG, "Found " + to_string(keypoints[i].size()) + " keypoints in " + i); if (saveDebugVisualizations) { Mat out; drawKeypoints(images[i], keypoints[i], out, Scalar(0, 0, 255)); imwrite(fs::basename(fs::path(i)) + "_features.jpg", out); } } } vector matchWithRatioTest( const DescriptorMatcher& matcher, const Mat& desc1, const Mat& desc2) { // Raw match vector > nnMatch; matcher.knnMatch(desc1, desc2, nnMatch, 2); // Ratio test filter vector ratioMatched; for (size_t i = 0; i < nnMatch.size(); i++) { DMatch first = nnMatch[i][0]; float dist1 = nnMatch[i][0].distance; float dist2 = nnMatch[i][1].distance; if (dist1 < MATCH_RATIO_THRESHOLD * dist2) { ratioMatched.push_back(first); } } return ratioMatched; }
使用人脸模块进行人脸界标(也称为人脸标记)检测的过程
卷积神经网络车牌自动识别图像分割和特征提取、模式识别基础知识和两种重要的模式识别算法,支持向量机 (SVM) 和深度神经网络 (DNN)
深度神经网络面部检测和识别在图像上检测人脸的不同技术,从使用具有 Haar 特征的级联分类器的更经典算法到采用深度学习的新技术
网络视觉使用 OpenCV.js 为 Web 开发计算机视觉算法的新方法,OpenCV.js 是用于 JavaScript 的 OpenCV 的编译版本
ArUco增强现实应用程序使用 OpenCV 的 ArUco 模块、Android 的 Camera2 API 和 JMonkeyEngine 3D 游戏引擎在 Android 生态系统中实现增强现实 (AR) 应用程序
iOS中全景图使用 OpenCV 的 iOS 预编译库在 iPhone 上构建全景图像拼接应用程序。
参阅 - 亚图跨际


