2019年7月4日

opencv学习之基于背景提取等目标跟踪算法#20190704

摘要: / 任务目标: 基于背景提取的目标跟踪算法实践及代码分析。 / include "opencv2/opencv.hpp" using namespace cv; using namespace std; int labelTargets(Mat &src, Mat &mask, int thresh 阅读全文

posted @ 2019-07-04 17:07 Leung_ss 阅读(1075) 评论(0) 推荐(0) 编辑

2019年7月3日

opencv学习之catch blue#20190703

摘要: Object Tracking Now we know how to convert BGR image to HSV, we can use this to extract a colored object. In HSV, it is more easier to represent a col 阅读全文

posted @ 2019-07-03 14:58 Leung_ss 阅读(189) 评论(0) 推荐(0) 编辑

2019年6月17日

opencv学习之houghlinesp

摘要: include include using namespace cv; using namespace std; //值传递和引用的问题 void drawDetectLines(Mat& image,const vector& lines,Scalar color) { // 将检测到的直线在图上 阅读全文

posted @ 2019-06-17 18:18 Leung_ss 阅读(1829) 评论(0) 推荐(0) 编辑

2019年6月12日

opencv学习之米粒分割 #201906121549

摘要: include using namespace cv; using namespace std; int main(){ Mat pic =imread("/Users/leung/Documents/imgs/Rice.png"); Mat gray,bw; cvtColor(pic, gray, 阅读全文

posted @ 2019-06-12 15:50 Leung_ss 阅读(413) 评论(0) 推荐(0) 编辑

2019年6月10日

opencv学习之hsv通道分解 #201906101704

摘要: include using namespace cv; using namespace std; int main(){ Mat pic = imread("/Users/leung/Documents/imgs/lena.jpg"); Mat pic_half,hsvchannels[3],hsv 阅读全文

posted @ 2019-06-10 17:04 Leung_ss 阅读(470) 评论(0) 推荐(0) 编辑

opencv学习之图像滤波预处理 #201906101646

摘要: ` include using namespace cv; using namespace std; int main(){ Mat pic_src = imread("/Users/leung/Documents/imgs/lena.jpg"); Mat logo_src = imread("/U 阅读全文

posted @ 2019-06-10 16:46 Leung_ss 阅读(278) 评论(0) 推荐(0) 编辑

2019年6月6日

opencv学习之addWeighted图片打水印 #201906061030

摘要: include using namespace cv; using namespace std; int main(){ //定义矩阵内存块; Mat pic, logo_src, logo,pic_roi; //读入两张图片,底板背景和水印logo_src; pic = imread("/User 阅读全文

posted @ 2019-06-06 10:31 Leung_ss 阅读(261) 评论(0) 推荐(0) 编辑

2019年4月24日

alpha channel

摘要: from PIL import Image image = Image.open("lena.jpg") buffer=[] for pixel in image.getdata(): buffer.append(( pixel[0], pixel[1], pixel[2], pixel[3] 15 阅读全文

posted @ 2019-04-24 13:11 Leung_ss 阅读(243) 评论(0) 推荐(0) 编辑

2019年4月22日

rm git commit history

摘要: 删除.git文件夹可能会导致git存储库中的问题。如果要删除所有提交历史记录,但将代码保持在当前状态,可以按照以下方式安全地执行此操作: 1.尝试 运行 git checkout orphan latest_branch 2. 添加所有文件git add A 3. 提交更改git commit am 阅读全文

posted @ 2019-04-22 17:34 Leung_ss 阅读(108) 评论(0) 推荐(0) 编辑

git 使用学习

摘要: 1. git add :stage the file git rm cached : unstage the file git status :查看当前状态 vim readtest: new file git status 会发现 untracked files : r readtest git 阅读全文

posted @ 2019-04-22 17:24 Leung_ss 阅读(94) 评论(0) 推荐(0) 编辑

导航