- 博客(9)
- 资源 (1)
- 收藏
- 关注
原创 ros启动问题及解决思路
Resource not found: roslaunch ROS path [0]=/opt/ros/noetic/share/ros ROS path [1]=/opt/ros/noetic/share The traceback for the exception was written to the log file 之前按照提示,Command ‘roslaunch’ not found, but can be installed with:sudo apt install python3-ro
2021-12-11 10:01:57
1159
原创 凸包轮廓计算
#include <opencv2/opencv.hpp> #include <iostream> using namespace std; using namespace cv; Mat searchConcaveRegion(std::vector<std::vector<Point> >hull, Mat &src) ; std::vector<Point2f> searchConcavePoint(Mat &sr.
2021-12-06 13:33:19
199
原创 角点检测+opencv
#include<opencv2/opencv.hpp> #include<iostream> #include<vector> using namespace cv; using namespace std; int main() { Mat img = imread("C:/Users/Administrator/Desktop/h.png"); if (img.empty()) { cout << "请输入图像文件名称是否正确" <.
2021-11-29 12:35:51
2095
原创 opencv+keypoint
#include<opencv2/opencv.hpp> #include<iostream> #include<vector> using namespace cv; using namespace std; int main() { Mat img = imread("C:/Users/Administrator/Desktop/h.png"); if (img.empty()) { cout << "请输入图像文件名称是否正确" <.
2021-11-29 11:35:30
2903
原创 opencv+凸包检测
之前试了一下,可能是图片类型选错了导致之前的文件不成功,以下是完整的案例 #include<opencv2/opencv.hpp> #include<iostream> #include<vector> using namespace cv; using namespace std; int main() { Mat img = imread("C:/Users/Administrator/Desktop/h.png"); if (img.empty()).
2021-11-28 16:35:30
3416
原创 连通域计算
算是一种心得吧,虽然有点小瑕疵 #include <opencv2/opencv.hpp> #include <iostream> #include <vector> using namespace std; using namespace cv; int main() { system("color F0");//output change color //distant change Mat img = imread("C:/Users/Administ
2021-11-26 18:02:49
1539
原创 opencv视频跟踪代码个人心得
#include<opencv2/opencv.hpp> #include<iostream> using namespace cv; using namespace std; int main(int argc, const char** argv) { VideoCapture cap("mullballs.mp4"); if (!cap.isOpened()) { cout << "重新确认视频名字是否正确" << endl; ...
2021-11-24 18:37:33
764
原创 opencv滑动条创建及改变图像亮度
#include<opencv2/opencv.hpp> #include<iostream> using namespace std; using namespace cv; int value; void callBack(int, void*);//滑动条回调函数 Mat img1, img2;//全局变量 int main() { img1 = imread("C:/Users/Administrator/Documents/Visual Studio 2015/P.
2021-11-23 22:08:45
1048
原创 opencv——python在Linux安装心得
从源代码构建OpenCV 首先,从源代码进行编译似乎有些复杂,但是一旦成功完成,就没有什么复杂的了。 首先,我们将安装一些依赖项。有些是必需的,有些是可选的。如果不想,可以跳过可选的依赖项。 所需的构建依赖项 我们需要**CMake**来配置安装,需要**GCC**进行编译,需要**Python-devel**和**Numpy**来构建Python依赖项等。 sudo apt-get install cmake sudo apt-get install gcc g++ 支持python2: s
2021-11-06 00:26:49
608
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人