顯示具有 博士學位 標籤的文章。 顯示所有文章
顯示具有 博士學位 標籤的文章。 顯示所有文章

2017年4月27日 星期四

如何在Python3.6中安裝OpenCV3.2套件

最近打算寫人臉偵測的程式,前次寫影像相關程式是10年前用 PERL,現在Python當道,所以打算換個語言試看看(其實是PERL忘的差不多了,即使以前非常常寫)。

影像 librery 就直接使用OpenCV了,讀者自行到 http://opencv.org/ 下載,對於安裝或使用可以參考『阿洲的程式教學』,我個人覺得寫的很清楚了。

Python 就到https://www.python.org/ 下載,自行解壓縮安裝,在安裝時建議選 customize 方式,可以順道將 PATH 等都安裝設定好。

     好了,步入正題,如何將 OpenCV 掛到 Python 中使用,首先要先去下載 .whl 套件,我是參考了 『Solarian Programmer』網站上的教學來完成.

1.  先下載安裝 Microsoft Visual C++ 2015 Redistributable (裝完系統會要你重開機)

2.安裝 wheel package, 到  http://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv 中的 openCV Library 下載相關檔案,例如我是安裝 python 3.6 x64的,所以我下載 numpy-1.12.0+mkl-cp36-cp36m-win32.whl 與  opencv_python-3.2.0-cp36-cp36m-win32.whl 這2個檔案。下載完在命令提示字元中執行
(1). pip install numpy-1.12.0+mkl-cp36-cp36m-win32.whl
(2). pip install opencv_python-3.2.0-cp36-cp36m-win32.whl

image
<安裝過程畫面>
tip: 切記一定是要用『系統管理員』權限開的命令提示字元視窗才不會有權限不足的問題

3. 若兩者都安裝成功,你可以執行 python,試著 import cv2 ,應會成功。

image
<匯入 opencv 的 python extension modeule 成功>

4. 可以寫個小程式看看可不可以使用,我參考了 Solarian Programmer 網站上的範例寫了一個 doraemon.py

import cv2

image = cv2.imread("doraemon.jpg")
gray_image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
cv2.imshow("Doraemon", image)
cv2.imshow("Doraemon - gray", gray_image)
cv2.waitKey(0)
cv2.destroyAllWindows()

結果不錯哦!!

image

image

Reference:

1. https://www.solarianprogrammer.com/2016/09/17/install-opencv-3-with-python-3-on-windows/

2. http://www.lfd.uci.edu/~gohlke/pythonlibs/

3. https://www.scivision.co/install-opencv-python-windows/

3. https://pypi.python.org/pypi?%3Aaction=search&term=opencv&submit=search

2013年6月26日 星期三

Paper 報告回顧 -- Video Streaming Coding and Others (7 篇)

2009/06/12   Source PDF: Video Streaming for Mobile Video Surveillance



2002/05/01   Source PDF: Pairwise alignment using HMMs (生物計算演算法課本其中一章)



2002/05/26   Source PDF: On Image Classification, city images vs landscapes



2002/10/25   Source PDF: Literacy Learning by Storytelling with a Virtual Peer


 2003/01/17   Source PDF: A Histogram-Based Method for Detection of Faces and Cars


 2003/08/29   Source PDF: Detection and location of people in video streams by fusion of color, edge and motion information



2003/10/17   Source PDF: Automatic Segmentation of Moving Objects for Video Object Plane Generation

Paper 報告回顧 -- Panoramic and Camera calibration (13 篇)

2005/11/17   Source PDF: Dynamosaics-Video Mosaics with Non-Chronological Time



2005/12/15   Source PDF: Evolving Time Fronts-Spatio-Temporal Video Warping



2006/03/01   Source PDF: Panoramic Video Textures



2006/03/29   Source PDF: Shape and Motion Carving in 6D



2006/05/03   Source PDF: Spatio-Temporal View Interpolation



2006/06/05   Source PDF: Three-Dimensional Scene Flow



2006/08/03   Source PDF: Real-Time View Transition Between Cameras Having Different Perspectives



2006/09/28   Source PDF: Automatic Panoramic Image Stitching using Invariant Features



2006/12/07   Source PDF: Camera calibration survey



2007/03/01   Source PDF: High-quality video view interpolation using a layered representation



2007/04/26   Source PDF: Towards 3-D scene reconstruction from broadcast video



2007/06/07   Source PDF: Calibrating a Multi-Camera System for 3D Modelling



2007/08/15   Source PDF: Camera calibration from video of a walking human

2013年6月25日 星期二

Paper 報告回顧 - Sport HighLight (4篇)

2003/03/14   Source PDF: Indexing of Baseball Telcast for Content-based Video Retrieval



2003/04/25   Source PDF: Extract Highlights from baseball game video with Hidden Markov Models



2003/07/25   Source PDF: Structure Analysis of Sports Video Using Domain Models


2004/02/06   Source PDF: Baseball scene classification using multimedia features

Paper 報告回顧 -- Content-Based Retrieval (6 篇)

2001/09/03  Source PDF: Visual Communications of Tomorrow



2001/10/04   Source PDF: Applying and Implementing the MPEG-4 Multimedia Standard



2001/12/06   Source PDF: Video Transcoding for Universal MultiMedia Access



2001/12/20   Source PDF: Video transcoding and summarization



2002/01/03   Source PDF: Multimedia content description in the InfoPyramid



2002/05/20   Source PDF: Image Classification for Content-Based Indexing




歷年 Paper 報告整理 -- 序

    博班唸了10年, 雖然中間因為家中的事停了一陣子因此也沒唸完, 但之前為了了解自己適合的研究領域, 在指導教授王元凱老師指導下, 選取了一些領域的論文並報告了其中的一些 paper. 現在回顧看了一下, 還真的蠻多. 隨著閱讀, 研究領域也就一直隨著唸的方向而改變.

    其實我最早想做的就是跟網路有關的方面(其實到現在還是一樣, 並沒有改變), 但隨著實驗室是做影像的領域, 慢慢的由 Content-Based Retrieval,  video transcoding , baseball highlight detection,  panoramic, camera calibration, 最後做的是 video streaming coding.

    最近整理檔案, 覺得應將這些"過程"記錄下來. 因此, 決定利用雲端技術將這東西放在自己的 blog 中. 藉著整理及寫些東西, 保持寫作的"手感".

    接下來的文章會依照研讀的領域分類將投影片分類放上.