原创 Use xawtv to display vivi video
1. Install xawtv.sudo apt-get install xawtv. 2. Load vivi module.sudo modp
原创 執行 execl時發生warning: missing sentinel in function call [-Wformat]警告
在linux下用gcc編譯下面的代碼 #include <unistd.h> int main() { execl("/bin/echo", "echo", "hello,world", 0); }會報出警告: warning: mi
原创 【轉載】Android中build target,minSdkVersion,targetSdkVersion,maxSdkVersion概念區分
http://blog.csdn.net/zhangjg_blog/article/details/17142395 寫的非常透徹! 點贊 收藏 分享 文章舉報 大唐遊子 發佈
原创 利用OpenCV檢測手掌(palm)和拳頭(fist)
思路:利用訓練好的palm.xml和fist.xml文件,用OpenCV的CascadeClassifier對每一幀圖像檢測palm和fist,之後對多幀中檢測到的palm和fist進行聚類分組,滿足分組條件的區域爲最終檢測結果。 代碼
原创 FaceRecognizer
1. 總體工作流程 1.1 主要成員及作用 FaceTrackertrain_face_tracker; // FaceTracker類,在訓練階段跟蹤人臉,採集樣本 FaceTra
原创 git push origin master
git push origin master的意思是: What is git push origin master This is a command that says “push the commits in the lo
原创 git learning
1. Glossary Clone A clone is a copy of a repository that lives on your computer instead of on a website's server som
原创 install oracle java in ubuntu 12.04
Using Oracle Java 7 is not formally supported by Ubuntu. There's plenty solutions for installing it, listed on https
原创 C語言從stdin讀取一行字符串的幾種方法
C語言從stdin讀取一行字符串的幾種方法 gets gets函數的頭文件是<stdio.h>,原型如下: char *gets(char *s); gets從stdin中讀入一行內容到s指定的buffer中,當遇到換行符或EOF時
原创 VS2010中malloc的使用
在VS2010 Express中,寫c程序: 例子1: #include <stdio.h> #include <stdlib.h> #define LEN 128 int main() { printf("\n"); int*
原创 template programming學習(2) ---- function template arguments type deduction
在實例化類模板時,需要在尖括號中間指明類型;但是在實例化函數模板時,可以不寫尖括號極其內部類型,因爲函數模板具有參數類型推斷功能。如下: #include <iostream> using namespace std; templat
原创 兩種輸入重定向的方法
兩種輸入重定向的方法 利用<命令 prog < file 上面的命令會將file內容重定向到stdin,prog程序內部可以直接對stdin進行處理,如: #include <stdio.h> int main() { int c
原创 初始化Mat的幾種方法
1. 調用Mat的構造函數或者create函數,如: // make a 7x7 complex matrix filled with 1+3j. Mat M(7,7,CV_32FC2,Scalar(1,3)); // and now
原创 Data Structures and Algorithm Analysis in C 學習之List反轉
方法1: // problem 3.12.a List Reverse_a(List L) { List TmpL; Position P; P = First(L); TmpL = MakeEm
原创 Linux socket 編程簡單例子
Linux socket 編程簡單例子 實例程序來自L L. Peterson & B S. Davie, Computer Networks: A System Approach, fifth edition, 第1.4節 cl