上一页 1 2 3 4 5 6 ··· 21 下一页
摘要: 1.使用 https://glad.dav1d.de/ 生成 glad.h 头文件(用来动态加载Opengl函数指针) 2.下载 https://www.glfw.org/ glfw 二进制库(GUI库) #define GLFW_INCLUDE_NONE #include "glad.h" #in 阅读全文
posted @ 2021-03-04 17:30 學海無涯 阅读(364) 评论(0) 推荐(0) 编辑
摘要: PlaneVector.hpp #ifndef PlaneVector_h__ #define PlaneVector_h__ template<typename coordinate_type> struct PlaneVector { coordinate_type x; coordinate_ 阅读全文
posted @ 2021-03-04 10:18 學海無涯 阅读(140) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <string> #include <vector> #include <cmath> //Polar coordinate system using Point = std::pair<double, double>; //https:// 阅读全文
posted @ 2021-03-04 10:15 學海無涯 阅读(688) 评论(0) 推荐(0) 编辑
摘要: #include <algorithm> //https://en.wikipedia.org/wiki/Feature_scaling std::vector<double> rescaling_normalization(const std::vector<double> &in,double 阅读全文
posted @ 2021-03-04 10:03 學海無涯 阅读(201) 评论(0) 推荐(0) 编辑
摘要: // convert to nv21 ffmpeg -i test.png -s 800x480 -pix_fmt nv21 test.yuv // convert to i420 ffmpeg -i test.png -s 800x480 -pix_fmt yuv420p yuv420p.yuv 阅读全文
posted @ 2021-03-01 15:10 學海無涯 阅读(219) 评论(0) 推荐(0) 编辑
摘要: namespace packet { /*! |magic|type|length|data|checksum| |4 |4 |4 | |2 | */ #pragma pack(push) #pragma pack(1) class IPacket { public: virtual ~IPacke 阅读全文
posted @ 2021-02-02 10:54 學海無涯 阅读(84) 评论(0) 推荐(0) 编辑
摘要: WSDiscoveryClient 类实现了检测 支持 ONVIF 协议的摄像头设备。该类主要实现了 WSDiscovery 协议(精简版)检测设备部分。 wsdiscoveryclient.h #ifndef WSDISCOVERYCLIENT_H #define WSDISCOVERYCLIEN 阅读全文
posted @ 2021-01-12 11:09 學海無涯 阅读(478) 评论(0) 推荐(0) 编辑
摘要: CUDA Error: no kernel image is available for execution on the device: No error 使用 C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\extras\demo 阅读全文
posted @ 2021-01-07 11:03 學海無涯 阅读(5338) 评论(0) 推荐(0) 编辑
摘要: 如何配置 CUDA 和 cuDNN? 为何神经网络框架需要配置 CUDA 和 cuDNN 通常一个神经网络框架,使用GPU加速训练或推理时都需要配置 CUDA 和 cuDNN,cuDNN 是一个 C 函数风格的动态库,像下面的这些框架都调用了 cuDNN 的函数进行 GPU 加速计算,而 cuDNN 阅读全文
posted @ 2021-01-06 13:30 學海無涯 阅读(1982) 评论(0) 推荐(0) 编辑
摘要: 转载自 https://levelup.gitconnected.com/8-ways-to-measure-execution-time-in-c-c-48634458d0f9 #include <chrono> class ElapsedTimer { public: void start() 阅读全文
posted @ 2020-12-22 17:13 學海無涯 阅读(87) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 21 下一页