计算机视觉
lisarer
这个作者很懒,什么都没留下…
展开
-
linux opencv调用手机摄像头
手机端安装IP摄像头先上源码:#include "cv.h"#include "highgui.h"#include int main(int, char**) { cv::VideoCapture vcap; cv::Mat image;CvCapture *capture ; const std::string videoStreamAddr原创 2017-02-05 11:08:29 · 3824 阅读 · 3 评论 -
OPENCV 通过Mat访问每个像素
先上代码:#include#include#includeusing namespace std;using namespace cv;int main(){ Mat diff=imread("/home/lisa/dataset/02m16001200/0.jpg"); for(int i=0;i<diff.rows;i++) {原创 2017-12-14 15:05:42 · 288 阅读 · 0 评论 -
OPENCV imencode与imdecode用法
上代码直接跑:#include#include#includeusing namespace std;using namespace cv;//this program is used for testing opencv encode and decode for jgeg picturesint main(){ Mat tstMat=imread("/home/l原创 2017-12-13 14:49:05 · 18943 阅读 · 1 评论 -
centos caffe编译问题汇总
问题:caffe目录 make的时候g++: error: ”-fPIC”: No such file or directory解决方案:export CXXFLAGS="-fPIC"原创 2017-11-02 15:10:36 · 555 阅读 · 0 评论 -
python Opencv目录下视频转换为
import cv2import oscurdir="/home/lisa/dataset/video/selected/"index=1;interval=10def video2pic(path): global interval cap=cv2.VideoCapture(path); success,frame=cap.read() wh原创 2017-09-20 11:16:04 · 406 阅读 · 0 评论 -
Python Opencv旋转图片90度
import numpy as npimport cv2img=cv2.imread("/home/lisa/dataset/HandDataSet_720_1280/chenshuyi/image/0.jpg",1)cv2.imshow("temp",img)cv2.waitKey(0)img90=np.rot90(img)cv2.imshow("rotate",img90)原创 2017-09-19 10:56:17 · 42220 阅读 · 1 评论 -
VATIC ---Video Annotation Tool configuration Record
The work of configurating the Video Annotation Tool ----Vatic really drives me crazy, you just cannot expect what bugs you can get . After three days of struggling, I finnally work it out. Here are原创 2017-03-28 16:55:21 · 1244 阅读 · 0 评论 -
YOLO install
darknet配置darknet 出现错误:/bin/sh: 1: nvcc: not foundmake: *** [obj/convolutional_kernels.o] Error 127解决方法:# 修改makefileNVCC = /usr/local/cuda-7.5/bin/nvcc原创 2017-01-22 10:19:46 · 602 阅读 · 0 评论 -
卷积运算的常用操作
求padding:void test_pad(int *input,int width,int height,int *&output, int pad ){ //single channel int out_width=width+2*pad; int out_height=height+2*pad; if(!output) output=new int[25]; ...原创 2018-04-08 14:19:36 · 1222 阅读 · 0 评论