opencv
water_93
邮箱:[email protected],东南大学博士,关注除草机器人,杂草识别等方向。
展开
-
opencv中使用bp神经网络
2.神经网络的训练intCvANN_MLP::train(constMat& inputs, constMat& outputs, constMat& sampleWeights, constMat& sampleIdx=Mat(), CvANN_MLP_TrainParams params=CvANN_MLP_TrainParams(), intfla原创 2016-04-25 20:19:30 · 5014 阅读 · 0 评论 -
opencv+python: 鼠标点击图像,输出该点的RGB和HSV值
import cv2# 读取图片并缩放方便显示img = cv2.imread('D:/6.jpg')height, width = img.shape[:2]size = (int(width * 0.2), int(height * 0.2))# 缩放img = cv2.resize(img, size, interpolation=cv2.INTER_AREA)# BGR...原创 2018-11-28 14:46:42 · 5075 阅读 · 0 评论 -
鼠标截取矩形图像保存,合并多幅小图片
1.鼠标手动截取矩形图像,并保存文件夹 定义一个鼠标回调函数(鼠标的动作),在主函数中定义响应setMouseCallback("capframe", onMouseRectPicking, 0),并批量保存图片#include <iostream>#include "opencv2/core/core.hpp"#include "opencv2/imgpro...原创 2018-12-05 10:52:59 · 258 阅读 · 0 评论 -
opencv+mfc: 点击按钮, 显示处理前后的图片
1.建立一个基于mfc的对话框程序2. 对话框的控件设置: 1) 工具箱中拖曳3个picture control+2个button+3个edit control, 然后picture control修改ID,button修改caption, edit control设置read only为true 2) 按钮右键添加事件处理程序,edit control设置value变...原创 2018-12-12 11:23:43 · 1307 阅读 · 0 评论