image
參考資料: RaspiCam: C++ API for using Raspberry camera with/without OpenCv   編輯程式

me1237guy 發表在 痞客邦 留言(0) 人氣()

image
先準備好一塊樹梅派和SD卡(16G) 首先, 在PC端先下載ImageWriter (win32diskimager-v0.9-binary) 下載官方作業系統Raspbian 2014-01-07-wheezy-raspbian   大概800MB, 解壓縮後約2.9GB

me1237guy 發表在 痞客邦 留言(0) 人氣()

Frame Filter 可直接針對影像串流(image stream)進行影像處理, 不需要額外複製一份至ring buffer然後才進行影像處理, 加快速度 可以定義影像串流(image stream)之影片格式(video format), 以便儲存成不同格式 With frame filters, a versatile and powerful way to manipulate image data has been introduced. Frame filters can be used to do: control which frames will be removed (dropped) from the image stream read and write image data to/from frames of the image stream without having to copy the image data to a ring buffer. In other words: the frame filter allows image processing directly on buffers of the image stream (DirectShow buffers). to change the video format (pixel format and/or width and height) of the image stream implement image processing

me1237guy 發表在 痞客邦 留言(0) 人氣()

資料來源: http://www.programmer-club.com.tw/ShowSameTitleN/java/5307.html 對同樣一個類別, 卻實作多個物件, 區分如下:
                            ^^^^^^^^^
  final: 值永遠不變
  static: 值永遠只有一個
  final static: 唯一值且不可變
舉例說好了:
public class A {
  ...
  final int fx = 5;
  static int sx = 10;
  ...
}
import A;
public class B {
  A x1 = new A();  //x1.fx=5, x1.sx=10
  A x2 = new A();  //x2.fx=5, x2.sx=10
  x1.fx = 20;  //編譯錯誤: 因為fx是常數
  x2.sx = 20;  //x1.sx=20, x2.sx=20
  A.sx = 30;   //x1.sx=30, x2.sx=30
}

me1237guy 發表在 痞客邦 留言(0) 人氣()

image
先記錄一下心得:  調整ADT字體大小 1. 先輸入關鍵字搜尋font 2. 點選Java Editor Text Font, 按下Edit按鈕 預設10號字體, 改成14號字看起來舒服多了~~~~

me1237guy 發表在 痞客邦 留言(0) 人氣()

image
DFK 23GV024 The Imaging Source 軟體 1) Windows XP, Vista, 7 & 8 驅動程式 TIS GigE相機驅動程式 [2.47 MB]

me1237guy 發表在 痞客邦 留言(0) 人氣()

image
下載 OpenCV-2.4.8-android-sdk.zip 前一陣子安裝OpenCV2.1時發生一件悲劇, 系統變數Path竟然被OpenCV安裝時給直接取代掉, 確認系統Path變數有下列路徑 C:\Program Files (x86)\Java\jre6\bin  

me1237guy 發表在 痞客邦 留言(0) 人氣()

File:Bayer pattern on sensor.svg
The Bayer Color Filter 可以看成 3種濾波器, 分別接收R, G, B Color Filter Array定義如下: Color Filter Alignment

me1237guy 發表在 痞客邦 留言(0) 人氣()

 1: function lCOM_Port = getAvailableComPort()
 2: % function lCOM_Port = getAvailableComPort()
 3: % Return a Cell Array of COM port names available on your computer
 4:  
 5: try
 6: s=serial('IMPOSSIBLE_NAME_ON_PORT');fopen(s); 
 7: catch
 8: lErrMsg = lasterr;
 9: end
 10:  
 11: %Start of the COM available port
 12: lIndex1 = findstr(lErrMsg,'COM');
 13: %End of COM available port
 14: lIndex2 = findstr(lErrMsg,'Use')-3;
 15:  
 16: lComStr = lErrMsg(lIndex1:lIndex2);
 17:  
 18: %Parse the resulting string
 19: lIndexDot = findstr(lComStr,',');
 20:  
 21: % If no Port are available
 22: if isempty(lIndex1)
 23: lCOM_Port{1}='';
 24: return;
 25: end
 26:  
 27: % If only one Port is available
 28: if isempty(lIndexDot)
 29: lCOM_Port{1}=lComStr;
 30: return;
 31: end
 32:  
 33: lCOM_Port{1} = lComStr(1:lIndexDot(1)-1);
 34:  
 35: for i=1:numel(lIndexDot)+1
 36: % First One
 37: if (i==1)
 38: lCOM_Port{1,1} = lComStr(1:lIndexDot(i)-1);
 39: % Last One
 40: elseif (i==numel(lIndexDot)+1)
 41: lCOM_Port{i,1} = lComStr(lIndexDot(i-1)+2:end); 
 42: % Others
 43: else
 44: lCOM_Port{i,1} = lComStr(lIndexDot(i-1)+2:lIndexDot(i)-1);
 45: end
 46: end 

me1237guy 發表在 痞客邦 留言(0) 人氣()

image
選取要複製的專案目錄夾 貼到workspace 準備import到Java-ADT

me1237guy 發表在 痞客邦 留言(0) 人氣()

image
Run the Android application 下載圖片

me1237guy 發表在 痞客邦 留言(0) 人氣()

image
開啟strings.xml準備自定義文字
 1: <?xml version="1.0" encoding="utf-8"?>
 2: <resources>
 3:  
 4: <string name="app_name">ArithmeticTest</string>
 5: <string name="action_settings">Settings</string>
 6: <string name="hello_world">Hello world!</string>
 7: <string name="InputFirstNumber">輸入第一個數字</string>
 8: <string name="InputSecondNumber">輸入第二個數字</string>
 9: <string name="CalResult">計算結果</string>
 10: <string name="Addition">+</string>
 11: <string name="Subtraction">-</string>
 12: <string name="Multiplication">x</string>
 13: <string name="Division">/</string>
 14: 
 15: </resources>

me1237guy 發表在 痞客邦 留言(0) 人氣()

Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。