自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 资源 (3)
  • 收藏
  • 关注

原创 整数转字符串长度格式化(自动补0)

#include <iostream>#include <sstream> #include <string>#include <list>std::list<std::string> IntegerLenthFormat(int Lenth, int MaxValue) { std::list<std::string...

2018-07-18 16:27:18 1413

原创 OpenCV入坑-02 基本绘图

先来一个官方文档镇楼https://docs.opencv.org/3.4.1/d6/d6e/group__imgproc__draw.html------void cv::circle() 画圆void circle( cv::Mat& img, // Mat对象,要在哪一个图上画 cv::Point center, // 圆心 int radius, // 半径 con...

2018-07-05 17:09:42 248

原创 OpenCV入坑-01 Cmake Visual Studio 2015编译Opencv库

Cmake Visual Studio 2015编译Opencv库GitHub地址准备工作开始编译GitHub地址https://github.com/opencv/opencvhttps://github.com/opencv/opencv_contrib准备工作1.Visual Studio 2015 2.git3.opencv源代码4.opencv_contrib源代码开始编译1.先在你相中...

2018-07-05 16:02:31 316

原创 DTH111 温度传感器 获取温度 驱动 树莓派

前言由于我给我弟弟(小学生)买了一个树莓派,So,需要一个例子激发他的兴趣(但是好像没啥用)于是我就写了这个正文开始--------DTH111.h/*2018-02-13 1.0*/#ifndef __DTH111_H__#define __DTH111_H__#include <sys/time.h>#include <unistd.h>#include...

2018-07-03 10:21:47 789

原创 Hello Word

先来一个普通版本#include <stdio.h>int main(void) { printf("helloword"); return 0;}#include <stdio.h>#include <iostream>int main(void) { std::cout << "helloword" <<

2018-05-14 10:45:00 259

原创 Google Protobuf socket通用发送接收模版

说明:需要传入一个socket和Protobuf对象,传输的时候会先发送一个数据长度,然后才是protobuf的数据#pragma once#ifndef __PROTOC_H__#define __PROTOC_H__#include "ConnectProtocol.pb.h" //protobuf编译生成的定义文件#include <iostream>#include...

2018-04-02 11:28:57 1280

原创 DnsPod.com域名解析接口封装(适用群辉,支持二级域名)

<!-- 注释:DnsPod.com域名解析接口封装(支持群晖DDNS接口) 作者:豌豆豆 邮箱:[email protected] --><!-- 这里是群晖的设置连接需要的地址,也可以浏览器里手动请求,需要把192.168.10.2改成自己的服务器地址 需要在服务器PHP开启Curl支持 http://192.168.10.2/DDNS_DNSPOD_UpD...

2018-04-02 10:26:51 2682

原创 Delphi判断字符串是否包含限制以外的字符 否则置空

判断字符串是否包含限制以外的字符 否则置空procedure TMainForm.cbSearchExit(Sender: TObject); //判断退出事件varJ:Integer;K:String;begin K := TsEdit(Sender).Text;for J:=1 to Length(K) do beginif not(K[J] in ['0'..'9','a'....

2018-04-02 10:20:27 1504

原创 QT遍历指定目录

/*QT遍历指定目录*/#include <QDir>void TraverseDirectory (QString Path) { QDir dir; dir. setPath (Path); QFileInfoList list = dir. entryInfoList (); for ( int i = 0 ; i < list....

2018-04-02 10:16:08 310

原创 C++实现反射(单例、回调函数方式)

OneInstance.h#pragma once#include <iostream>#include <map>typedef void* (*CallbackFunction)(void);class OneInstance {public: std::map<std::string, CallbackFunction> ClassLib; ...

2018-04-02 10:11:51 549

原创 Exiv2库的使用(C++)

#include <iostream>#include <exiv2/exiv2.hpp>#pragma comment(lib,"libexiv2.lib")#pragma comment(lib,"xmpsdk.lib")#pragma comment(lib,"libexpat.lib")#pragma comment(lib,"zlib1.lib")in

2018-01-03 18:09:37 4702 2

原创 Visual Studio 2015编译Eviv2库

Eviv2库Visual Studio 2015编译预防针准备工作开始编译预防针最近在写一个照片管理的玩具项目,需要读取照片的exif信息,找来找去最后选定了exiv2这个第三方开源库,主要是支持的格式全面(详情参考:http://www.exiv2.org/metadata.html).之前在百度搜索了一些这个库相关的资料,发现很少,只有一篇博客讲述了如何使用,照葫芦画瓢写了一个,结果段错

2018-01-02 11:49:43 1203 3

OpenCV X64 Debug and Release-new

-----------OpenCV X64 Debug and Release-new-----------

2018-07-06

OpenCV X64 Debug and Release

------------------- OpenCV X64 Debug and Release-----------------------

2018-07-05

Exiv2-0.26编译好的动态库和静态库-windows

DLL-Release-x64-MT-VS2015-14 DLL-Release-x86-MT-VS2015-14 LIB-Release-x64-MT-VS2015-14 LIB-Release-x86-MT-VS2015-14

2018-07-03

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除