OpenCV

A collection of 6 posts

OpenCV

OpenCV haartraining (Rapid Object Detection With A Cascade of Boosted Classifiers Based on Haar-like Features)

延續上一篇Manually Compiling and Installing OpenCV on Mac / Windows Without Package Manager,假設讀者已安裝OpenCV開發環境與command line指令設定。此篇以 Tutorial: OpenCV haartraining (Rapid Object Detection With A Cascade of Boosted Classifiers Based on Haar-like Features) 和 Creating a haar cascade classifier aka haar training 為基礎撰寫。 偵測物圖片蒐集 首先,要偵測的物體圖片是少不了的。假設我們要偵測的是一個原子筆,

  • hothero
    hothero
mac

Manually Compiling and Installing OpenCV on Mac / Windows Without Package Manager

OpenCV的全稱是Open Source Computer Vision Library,是一個跨平台的計算機視覺庫。OpenCV是由英特爾公司發起並參與開發,以BSD許可證授權發行,可以在商業和研究領域中免費使用。OpenCV可用於開發實時的圖像處理、計算機視覺以及模式識別程序。 (from wiki) 這篇將帶領讀者編譯OpenCV並且安裝相關執行檔與開發所用的標頭檔(如:確保pkg-config --cflags opencv, pkg-config --libs opencv正常),若是用"brew install opencv"則不會安裝cv.h等c/cpp開發用標頭檔。 Environments: Mac OSX 10.7.* ( & Windows 7 32/64 bits) (Visual Studio 2010)

  • hothero
    hothero
image

[Snippets]C# - 仿sikuli式的利用擷取圖片做按鍵精靈

最近有個需求是得去點擊某個程式的一些按鈕,但寫死座標位置使程式沒有彈性不是我的風格,最後就決定結合影像技術的方向來做一個仿sikuli利用截圖來點擊的偽按鍵精靈。以下是一些完成這目的的片段程式碼: Screenshot ``` int screenWidth = Screen.GetBounds(new Point(0, 0)).Width; int screenHeight = Screen.GetBounds(new Point(0, 0)).Height; Bitmap bmpScreenShot = new Bitmap(screenWidth, screenHeight);   // the final image used by memory reference Graphics gfx = Graphics.FromImage((Image)bmpScreenShot); gfx.CopyFromScreen(

  • hothero
    hothero
OpenCV

Build opencv 2.2 using mex with VS2010 on matlab r2011a

網路上這類文章不下少數,而本篇文章將著重在如何將opencv2.2版利用VS2010的編譯器,用mex編成matlab r2011a版可呼叫的file(新版本所修改的地方)。(註:mex為一編譯器,可將c/c++程式編成為matlab執行檔) 編mex不外乎幾個步驟: 安裝Visual Studio 2010, MATLAB r2011a, opencv 2.2 setup matlab中的mex 可參考:http://blog.yam.com/dainn/article/26676311 編輯matlab的mexopts.bat ( C:\Users\hothero\AppData\Roaming\MathWorks\MATLAB\R2011a ) 在"set MATLAB=%MATLAB%

  • hothero
    hothero
You've successfully subscribed to hothero's TechNote!