04 2020 档案

摘要:git clone https://github.com/opencv/opencv.git cd opencv-4.2.0/ mkdir build cd build/ cmake -D CMAKE_BUILD_TYPE=RELEASE -D OPENCV_GENERATE_PKGCONFIG=O 阅读全文
posted @ 2020-04-30 18:01 虾兵 阅读(1691) 评论(0) 推荐(0) 编辑
摘要:现将YUV数据转到Mat中 AVFrame *frame; int width = frame->width, height = frame->height; cv::Mat tmp_img = cv::Mat::zeros( height*3/2, width, CV_8UC1 ); memcpy 阅读全文
posted @ 2020-04-29 15:56 虾兵 阅读(1443) 评论(0) 推荐(0) 编辑
摘要:训练脚本启动命令 sh yckj_model_train.sh /home/my_object_detect/cctv_train_image/ /home/my_object_detect/cctv_test_image/ cctv /home/my_object_detect/cctv_outp 阅读全文
posted @ 2020-04-29 14:45 虾兵 阅读(507) 评论(0) 推荐(0) 编辑
摘要:#ifndef OBJECT_DETECT_H #define OBJECT_DETECT_H #include <stdbool.h> /************************************************* 功能: 对象检测(检测视频中的台标、人物等) 参数说明: s 阅读全文
posted @ 2020-04-29 09:52 虾兵 阅读(4199) 评论(0) 推荐(0) 编辑
摘要:在filter目录下新建vf_transform 文件 文件内容 #include "libavutil/opt.h" #include "libavutil/imgutils.h" #include "libavutil/avassert.h" #include "avfilter.h" #inc 阅读全文
posted @ 2020-04-28 18:22 虾兵 阅读(477) 评论(0) 推荐(0) 编辑
摘要:最近因为工作需要,要进行265 10bit编码,于是从ffmpeg官网下载了最新版的32位的ffmpeg可执行程序,使用如下命令进行编码: ffmpeg.exe -i input.ts -vcodec libx265 -pix_fmt yuv420p10le -acodec copy output. 阅读全文
posted @ 2020-04-28 15:42 虾兵 阅读(4285) 评论(0) 推荐(0) 编辑
摘要://opencv-4.2.0 tensorflow 1.14.0 亲测可用 #include <fstream>#include <sstream>#include <opencv2/dnn.hpp>#include <opencv2/imgproc.hpp>#include <opencv2/hi 阅读全文
posted @ 2020-04-28 12:05 虾兵 阅读(503) 评论(0) 推荐(0) 编辑
摘要:编译方式 g++ test_opencv.cpp -I/root/opencv-4.2.0/install/include/opencv4/ -L/root/opencv-4.2.0/install/lib64 -lopencv_highgui -lopencv_imgcodecs -lopencv 阅读全文
posted @ 2020-04-24 18:09 虾兵 阅读(263) 评论(0) 推荐(0) 编辑
摘要:1、需要准备的东西 分别解压 安装包编译环境 yum install autoconf yum install automake yum install libtool yum install curl yum install make yum install g++ yum install unz 阅读全文
posted @ 2020-04-15 14:14 虾兵 阅读(422) 评论(0) 推荐(0) 编辑
摘要:// ConsoleApplication1.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include "stdio.h"/*int main(){ printf("test"); return 0;}*/#include <opencv2/core/cor 阅读全文
posted @ 2020-04-03 16:57 虾兵 阅读(193) 评论(0) 推荐(0) 编辑