opencv
计算机视觉部分
忽而今夏&_&
这个作者很懒,什么都没留下…
展开
-
opencv python 报错
python配置opencv本来好好的,用了一天不知道为什么就不好使了。报错如下(没截全):The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support.看网上的方法是 pip opencv-contrib-python ,但是我用了之后……没有什么用……T_T只好 pip uninstall opencv-python & pip uninstall opencv原创 2022-04-21 15:22:15 · 3541 阅读 · 0 评论 -
opencv 问题
CV_DbgAssert(data);0x7599B922 处(位于 Project1.exe 中)引发的异常: Microsoft C++ 异常: cv::Exception,位于内存位置 0x0053E480 处。解决方法:Mat类的at函数报错CV_DbgAssert(data),出现未经处理的异常。原创 2022-03-22 21:52:54 · 241 阅读 · 0 评论 -
opencv 高斯运动 KCF SVM 贝塞尔
高斯运动物体检测#include "gaussians_back.h"#include "gaussians_back_start.h"#include<opencv2/opencv.hpp>using namespace std;using namespace cv;int main(){ VideoCapture cap(0);//不使用电脑摄像头可删 Mat frame;//图像 Mat AT = Mat::zeros(Size(640, 480), CV_8UC1);原创 2022-02-11 12:13:04 · 1741 阅读 · 0 评论 -
opencv realsense 深彩对齐
realsense 深彩对齐#include <iostream>#include <opencv2/opencv.hpp>#include <librealsense2/rs.hpp>#include <sstream>#include <iostream>#include <fstream>#include <algorithm>#include <cstring>#include <原创 2022-02-08 23:49:02 · 243 阅读 · 0 评论 -
opencv realsense 显示深度图
#include <iostream>#include<stdlib.h>#include<stdio.h>#include<string>using namespace std;#include<opencv2/imgproc/imgproc.hpp>#include<opencv2/core/core.hpp>#include<opencv2/highgui/highgui.hpp>using name原创 2022-02-08 23:46:26 · 1043 阅读 · 0 评论 -
opencv 拍摄并保存照片
按键拍摄保存照片。#include<opencv2/opencv.hpp>#include"opencv2/highgui/highgui.hpp"#include<iostream>#include<string>using namespace cv;using namespace std;int main(){ int i = 0; string name; //调用摄像头 VideoCapture capture(0); while (原创 2022-02-08 23:41:41 · 2620 阅读 · 0 评论 -
opencv 鼠标点击获取HSV、RGB
鼠标点击获取HSV等信息。#include<iostream>#include<opencv2\opencv.hpp>#include"opencv2\highgui\highgui.hpp"using namespace std;using namespace cv;void on_MouseHandle(int event, int x, int y, int flags, void* param){ Mat srcImage = *(Mat*)param; s原创 2022-02-08 23:39:33 · 1942 阅读 · 0 评论 -
opencv 滑动条
滑动条改变HSV等(似乎有些地方不对……?)写得超级繁琐。#include<opencv2/core/core.hpp>#include<iostream>#include<opencv2\opencv.hpp>#include"opencv2\highgui\highgui.hpp"#include<vector>using namespace std;using namespace cv;Mat dstImage;Mat srcIma原创 2022-02-08 23:36:26 · 1928 阅读 · 0 评论 -
opencv KCF追踪报错
tracker->update(dstImage1, roi);//刷新ROI的位置在这一句报错,后来发现update()中的dstimage1没有经过处理,把之前对image进行的 转换颜色空间、二值化、开闭运算、canny运算 又进行一遍。开始报错如下OpenCV(3.4.13) Error: Assertion failed (img.channels() == 1 || img.channels() == 3) in cv::TrackerKCFImpl::updateImpl, fil原创 2022-02-08 19:21:16 · 2658 阅读 · 2 评论 -
摄像头识别轨迹出现的问题
问题:程序“ ”已退出,返回值为 -1 (0xffffffff)。解决是因为代码是复制CSDN大佬的,里面调用的是外接的USB摄像头,而我现在没有外接摄像头导致出现了这个问题,把VideoCapture cap(1)改成VideoCapture cap(0)就可以正常运行了。...原创 2022-01-13 16:35:11 · 223 阅读 · 0 评论 -
dk 识别物体出现的问题
帧不在模块中在加载的模块中未找到当前堆栈帧。无法显示此位置的源代码。未加载igd10iumd32.pdbigd10iumd32.pdb 包含查找模块 igd10iumd32.dll 的源文件所需的调试信息。https://blog.csdn.net/LP2010/article/details/100691639未找到io.c您需要查找 io.c 以通过查看源来确定当前调用堆栈帧。无可用源此模块的调试信息中缺少源信息...原创 2021-12-13 22:55:28 · 860 阅读 · 0 评论