随笔分类 -  vc++

摘要:CMakeList.txt内容 cmake_minimum_required(VERSION 3.10) project(tnn_test_aarch) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FL 阅读全文
posted @ 2022-12-11 18:09 dangxusheng 阅读(223) 评论(0) 推荐(0) 编辑
摘要:#pragma once #include <iostream> #include <string.h> #include <unistd.h> #include <sys/io.h> #include <sys/types.h> #include <sys/stat.h> #include "di 阅读全文
posted @ 2022-11-09 23:14 dangxusheng 阅读(867) 评论(0) 推荐(0) 编辑
摘要:// // Created by DangXS on 2022/4/27. // #ifndef CPLUSPLUS_PROJECT1_YUV_HELPER_H #define CPLUSPLUS_PROJECT1_YUV_HELPER_H #include "opencv2/opencv.hpp" 阅读全文
posted @ 2022-11-09 23:10 dangxusheng 阅读(1326) 评论(0) 推荐(0) 编辑
摘要:// // Created by DangXS on 2022/4/27. // #ifndef CPLUSPLUS_PROJECT1_HELPER_H #define CPLUSPLUS_PROJECT1_HELPER_H #include <iostream> #include <cstring 阅读全文
posted @ 2022-10-25 23:42 dangxusheng 阅读(44) 评论(0) 推荐(0) 编辑
摘要:参考 https://blog.csdn.net/luolinll1212/article/details/106061943 1 c++ 实现 2 编写pybind11的代码 #include "pybind11/pybind11.h" #include "pybind11/numpy.h" #i 阅读全文
posted @ 2022-10-18 15:24 dangxusheng 阅读(364) 评论(0) 推荐(0) 编辑
摘要:CMakeList 内容: cmake_minimum_required(VERSION 3.14) project(demo) set(CMAKE_CXX_STANDARD 17) include_directories(3rd_party/stb) find_package(OpenCV REQ 阅读全文
posted @ 2022-10-18 15:12 dangxusheng 阅读(312) 评论(0) 推荐(0) 编辑
摘要:// // Created by DangXS on 2022/5/28. // #ifndef INIRW_H #define INIRW_H /** * 文件:inirw.h * 版本:1.0 * * 说明:ini配置文件读写 * 1、支持;和#注释符号,支持行尾注释。 * 2、支持带引号'或" 阅读全文
posted @ 2022-06-23 21:14 dangxusheng 阅读(801) 评论(0) 推荐(0) 编辑
摘要:1 UBUNTU 环境 cmake_minimum_required(VERSION 3.15) project(PhoneInHand_linux) set(CMAKE_CXX_STANDARD 14) #SET(LC_ALL "zh_CN.GB2312") #SET(LANG "zh_CN.GB 阅读全文
posted @ 2022-06-23 21:08 dangxusheng 阅读(533) 评论(0) 推荐(0) 编辑
摘要:c++ 实现版本: 1 人脸检测 1.1 使用mtcnn-ncnn进行人脸检测,会输出face box和landmark5 face box: [x1,y1,x2,y2] landmark5: [left_eye,right_eye, nose, month_left, month_right] 2 阅读全文
posted @ 2019-12-28 21:13 dangxusheng 阅读(1726) 评论(1) 推荐(0) 编辑
摘要:1 dlib 依赖: dlib-19.18 opencv-3.4.2 #include "common.h" #include "opencv_base.h" #include "helper.h" #include "run.h" // dlib include files #include <i 阅读全文
posted @ 2019-12-26 09:47 dangxusheng 阅读(708) 评论(0) 推荐(0) 编辑
摘要:ubuntu 14.04 编译opencv-3.4.2 报错解决: 错误信息: /usr/bin/ld: /usr/local/lib/libavformat.a(allformats.o): relocation R_X86_64_32 against `.bss' can not be used 阅读全文
posted @ 2019-12-21 12:22 dangxusheng 阅读(3490) 评论(0) 推荐(0) 编辑
摘要:/* 合并多图像矩阵到一个大矩阵上 */ Mat mergeImgMats(vector<Mat> img_mats, int per_width, int per_height, int cols, int split_w) { int count = img_mats.size(); CV_Assert(count > 0); // 定义 行 int rows = count % cols = 阅读全文
posted @ 2019-10-18 16:06 dangxusheng 阅读(281) 评论(0) 推荐(0) 编辑
摘要:#pragma once #include <iostream> #include <io.h> #include <direct.h> #include <time.h> #include <string> #include <vector> #include <windows.h> using 阅读全文
posted @ 2019-10-18 15:03 dangxusheng 阅读(404) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示