![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++编程
LYXRhythm
这个作者很懒,什么都没留下…
展开
-
图像BASE64编码 cv::mat与bas64互相转换
#include <iostream>#include <opencv.hpp>#include "opencv2/imgcodecs/legacy/constants_c.h"#include <vector>#include <fstream>#include <string>using namespace cv;using namespace std;static std::string base64Decode(cons原创 2021-01-14 12:55:05 · 1184 阅读 · 0 评论 -
数据集制作代码
用于制作数据集的部分代码,包含随机裁剪,RGB->BGR,删除分配等操作#include <opencv2\opencv.hpp>#include <iostream>#include <cstring>#include<stdio.h>#include<stdlib.h>#include <time.h>#define ROI_W 512#define ROI_H 512using namespace cv原创 2020-09-07 15:30:26 · 369 阅读 · 0 评论 -
Jsoncpp使用教程
1. Jsoncpp简介JSON(JavaScript Object Notation)是一种轻量级的数据交换格式。易于人阅读和编写。同时也易于机器解析和生成。JSON采用完全独立于语言的文本格式,但是也使用了类似于C语言家族的习惯(包括C,C++,C#,Java, JavaScript,Python)。这些特性使得JSON成为理想的数据交换语言。JSON构建于两种结构:“名称/值”对的集合...原创 2019-07-26 10:57:18 · 433 阅读 · 0 评论