
OpenCV
OpenCV相关内容
鸡蛋卷啊卷
这个作者很懒,什么都没留下…
展开
-
OpenCV 视频流格式----avi与mp4区别
OpenCV python code, GitHub项目,中路径OpenCVDemo/OpenCvPythonDemo/VlogHelper/CreateVideo.py // 我用的mac,发现用XVID不生效 out = cv2.VideoWriter('project.avi', cv2.VideoWriter_fourcc('M','J','P','G'), 1, size) AVI M...原创 2019-11-14 11:14:41 · 4186 阅读 · 0 评论 -
【OpenCV--源码编译教程推荐--mac平台】
Error message: CMake Error at CMakeLists.txt:11 (message): FATAL: In-source builds are not allowed. You should create a separate directory for build files. 第一次没有cd到my_build_dir,报错:不能再...原创 2019-07-16 08:14:45 · 211 阅读 · 0 评论 -
【OpenCV--python-人脸识别系列】视频可预览但无法保存
我用的mac, python 3.6.5 ,opencv 4 case 编码器问题 cv2.VideoWriter_fourcc(*'XVID') 上述不可用,换成就ok了。 cv2.VideoWriter_fourcc('M','J','P','G') 参考官网VideoWriter_fourcc another case 当然常见的是dims,摄像头的 预览size,和VideoWri...原创 2019-07-30 08:43:25 · 310 阅读 · 0 评论 -
OpenCV源码编译教程推荐(mac平台)
Python 3.6的直接去官网下载就好 接入网址 Original command 注意更改主机的路径:-D OPENCV_EXTRA_MODULES_PATH=/Users/apple/CWorkSpace/OpenCv/opencv_contrib/modules $ workon cv $ cmake -D CMAKE_BUILD_TYPE=RELEASE \ -D CMAKE_...原创 2019-07-20 22:50:10 · 655 阅读 · 0 评论 -
【OpenCV--报错】Undefined symbols for architecture x86_64
Context 报这个错,我一直当是library找不到。没想到最后是没写-I 报错信息 Undefined symbols for architecture x86_64: "cv::namedWindow(cv::String const&, int)", referenced from: _main in HelloWorld-f6034d.o "cv::Stri...原创 2019-07-22 17:16:34 · 2857 阅读 · 2 评论 -
makelist link compile阶段与undefined reference to解法
源码构建的两个阶段 1. Compile 只需要头文件在,不关心是否实现 对应的编译器参数 -I头文件路径 g++ -I/header/directory/include CMakeList 全局的 INCLUDE_DIRECTORIES( /header/directory/include /headeer/directory2/include ) 指定target targ...原创 2019-08-29 03:23:46 · 1164 阅读 · 0 评论 -
Android CmakeList指定compiler
测试生效的方法 在module的build.gradle 中指定 android { compileSdkVersion 29 buildToolsVersion "29.0.0" defaultConfig { minSdkVersion 15 targetSdkVersion 29 versionCode 1 ...原创 2019-09-01 18:21:50 · 561 阅读 · 0 评论