openCV、openGL
大鹏的NLP博客
擅长自然语言处理,知识图谱,人工智能,大数据,K8S,软件工程等领域的技术及管理
展开
-
FFmpeg 命令学习
When -ss and -t are placed after the input, ffmpeg counts demuxed packets. This will be accurate.从视频开始,截取10秒的长度:ffmpeg -t 0:0:10 -i extern.mp4 -vcodec copy -acodec copy output.mp4从视频的2分30秒开始,截...原创 2020-01-15 13:50:27 · 279 阅读 · 0 评论 -
CentOS 7 下opencv3.0安装笔记-最简单的
opencv3.0目录下:mkdir buildcmake -DCMAKE_BUILD_TYPE=Release\Debug -DCMAKE_INSTALL_PREFIX=./build -DWITH_FFMPEG=OFFmake -j8make installFFMPEG这个选项-DWITH_FFMPEG=OFF可让编译变得简单。可能用到的资源:http://seisman.info/linux原创 2017-01-01 08:00:59 · 3033 阅读 · 0 评论 -
opencv坐标系确定笔记
#include #include #include #include#includeusing namespace std;using namespace cv;int main(){ shared_ptr image=make_shared(); image->create(Size(256, 500), CV_8UC1); coutcols<<e原创 2015-09-11 17:48:18 · 1391 阅读 · 0 评论 -
opencv下kd树使用笔记
http://www.cnblogs.com/eyeszjwang/articles/2429382.html http://www.bubuko.com/infodetail-1185412.htmlC++ 源码:https://github.com/jtsiomb/kdtreehttp://blog.csdn.net/daringpig/article/details/7652891原创 2016-02-23 21:17:43 · 4141 阅读 · 3 评论 -
图像的降采样与升采样笔记
采样下采样(subsampled)也称降采样(downsampled),即是采样点数减少。对于一幅N*M的图像来说,如果降采样系数为k,则即是在原图中 每行每列每隔k个点取一个点组成一幅图像。降采样很容易实现. 升采样(downsampled)也称或图像插值(interpolation)。对于图像来说即是二维插值。如果升采样系数为k,即在原图n与n+1两点之间插入k-1个点,使其构成k分。原创 2016-03-30 14:03:38 · 12229 阅读 · 0 评论 -
GLFW编译安装笔记
GLFW环境:CentOS 7安装: cd mkdir glfw-build cd glfw-build cmake make make install install 情况: … Install the project… – Install configuration: “” – Installin原创 2015-12-24 21:23:16 · 7185 阅读 · 0 评论 -
undefined reference to glulookat
添加-lGLU,注意区分大小写 g++ test.cpp -o Test -lglut -lGLU原创 2015-12-19 12:14:56 · 1029 阅读 · 0 评论 -
mesa(OpenGL)安装
环境:centos 7安装:步骤问题:在“./configure“时报告以下错误: Requested ‘libdrm_intel >= 2.4.61’ but version of libdrm_intel is 2.4.60解决方法:安装libdrm更高版本,找到这个程序的pc文件,在控制台添加: export PKG_CONFIG_PATH=/usr/lib/pk原创 2015-12-19 12:13:56 · 9752 阅读 · 0 评论 -
opencv mat 转yaml文件时的数据的保存顺序测试笔记
#include "opencv2/opencv.hpp"#include using namespace cv;int main(int argc, char** argv){ FileStorage fs("test.yml", FileStorage::WRITE); fs << "frameCount" << 5; fs<<"file_name"<<"filena原创 2015-09-21 20:31:48 · 1185 阅读 · 0 评论 -
基于openCV图像的矩的程序笔记
openCV3.0#include <cv.h>#include <cxcore.h>#include <highgui.h>#include <iostream>#include "opencv2/opencv.hpp"using namespace std;using namespace cv;int main_hu(){ Mat src = imread("leaf.jpg原创 2015-10-10 13:21:15 · 534 阅读 · 0 评论 -
Perhaps you should add the directory containing `opencv.pc' 解决笔记
sudo cp -f /opt/opencv-3.0.0/build/lib/pkgconfig/opencv.pc /usr/lib/pkgconfig/原创 2015-06-12 21:50:47 · 18731 阅读 · 0 评论 -
OpenCV中的FileStorage笔记
#include #include #include #include "opencv2/core/utility.hpp"#include "opencv2/imgproc.hpp"#include "opencv2/imgcodecs.hpp"#include "opencv2/highgui.hpp"using namespace cv;using namespace s原创 2015-07-09 21:51:45 · 784 阅读 · 0 评论