原创 swig 的簡單使用

swig /* File: copy2.i */ %module copy2 %{ #define SWIG_FILE_WITH_INIT #define _CRT_SECURE_NO_WARNINGS #include "c

原创 c中的變長參數

void error(const char * format, ...) { char temp[256] = {0}; va_list va; va_start(va, format); vsnprintf(

原创 c++簡單定時器

c++簡單定時器 本文轉載自 https://blog.csdn.net/u012234115/article/details/89857431 timer.hpp #ifndef _TIMER_H_ #define _TIM

原创 RAW格式文件按轉換爲文本文件

#include <cstdio> #include <stdio.h> #include <string.h> #include <fstream> using namespace std; int g_width = 244

原创 json庫 rapidjson的簡單使用

json庫 rapidjson的簡單使用 讀取json文件到rapidjson格式 #include "rapidjson/document.h" // rapidjson's DOM-style API #include

原创 rgb轉換到yuv420p nv12 yuv422p(cuda版本)

//超清公式 #define RGB2Y(R, G, B) ( 16 + 0.183f * (R) + 0.614f * (G) + 0.062f * (B) ) #define RGB2U(R, G, B) ( 128 -

原创 c++ 計算函數運行時間

#pragma once #include <iostream> #include <chrono> #include <thread> class Time_test { private: static int64_t _

原创 FindOPENCV.cmake

# - Try to find LIBOPENCV # Once done, this will define # # LIBOPENCV_FOUND - system has LIBOPENCV # LIBOPENCV_INCL

原创 c++ 寬字符文件的拷貝

copy2.h #ifndef _COPY2_H_ #define _COPY2_H_ #include <iostream> #include <string> using namespace std; #define M

原创 python 打包成可執行文件

test.spec文件 # -*- mode: python -*- block_cipher = None a = Analysis(['start.py'], # start.py爲啓動文件 p

原创 Qt css模板

/* QMenuBar { background-color: #323a3d; color: rgb(238, 238, 238); } */ QMainWindow { background-color: #

原创 python 中 logger的簡單使用

python 中 logger的簡單使用 #!/usr/bin/env python # -*- coding: UTF-8 -*- import logging import sys, os import winreg key

原创 maya python 的簡單使用

maya python 的簡單使用 使用pycharm給瑪雅寫python 裏邊含有瑪雅命令自動提示的配置 https://download.csdn.net/download/bigtail_cat/10543887 文件下載網址

原创 Git常用命令

GIT @(學習筆記)[Git] GIT 初始配置 解決換行符問題 修改默認編輯器 提交 回退版本 查看提交記錄 分支 永久刪除git中的無用文件 刪除匹配 *.rar文件 立即回收空間 比較文件差異 使用默

原创 sublime的設置及使用

sublime 安裝 Package Control 按下ctrl + `調出console 粘貼以下代碼到底部命令行並回車 import urllib.request,os; pf = 'Package Control.subl