- 博客(7)
- 资源 (1)
- 收藏
- 关注
原创 utf-8 字符串转 unicode 字符串
utf-8编码简介utf-8编码是一种变长编码, 中文字符用三个byte来存储,而编码范围在 0 到 0x7f 则使用1个字节存储 Number of bytes Bits for code point First code point Last code point Byte1 Byte2 Byte3 Byte4 1 7 U+0000...
2018-06-07 14:27:13 5478 1
原创 在OpenCV中绘制数组,也就是一些hist 统计的东东
#include <opencv2/opencv.hpp>float getMaxVal(const std::vector<int>& vec){ float tmp_v = vec[0]; for (int i = 0; i < vec.size(); i++) { if (vec[i] > tmp_v) {...
2018-03-23 14:13:46 730
原创 字符串转数字
/*--------------------------------------------------------------------- the main purpose is speed up the app---------------------------------------------------------------------*/in
2017-12-05 15:07:49 260
原创 CString 转 char *
int WtoAsc(char * dst, CString &src){ int j = 0; for (; j < src.GetLength(); j++) { dst[j] = (char)(src.GetAt(j) & 0xff); } dst[j] = 0; return 0;}
2017-10-13 10:31:40 214
原创 一个计时类,可以同时用在windows 和 linux 环境下
一个计时类,可以同时用在windows 和 linux 环境下local_timer.h#ifndef LOCAL_TIMER_H#define LOCAL_TIMER_H#include <time.h>#ifdef LINUX#include <sys/time.h>#else#include <windows.h>#endifclass local_timer{private:
2015-09-10 16:14:06 391
原创 ffmpeg 视频格式转换
在进行图形图像分析的时候,我们往往需要把视频转换为yuv 格式或者单通道灰度图像,ffmpeg 就显得很方便了以下我将示范几个用法用法1. mp4 转换为 gray ,单通道的, 图像大小640*480, 总共500帧F:\video>ffmpeg.exe -i 20120730_051556_N.mp4 -pix_fmt gray -s 640*480 -frames 50
2015-09-08 10:17:09 1490
原创 ffmpeg 详细命令列表
1. 如何获取详细命令列表 按如下格式输入 ffmpeg.exe -h full >> x.txt, 即可获取到详细命令格式列表2. 命令如下Hyper fast Audio and Video encoderusage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] ou
2015-09-07 16:32:14 2549
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人