Notice: Trying to access array offset on value of type bool in /home1/freesand/public_html/wp-content/plugins/wiki-embed/WikiEmbed.php on line 112

Notice: Trying to access array offset on value of type bool in /home1/freesand/public_html/wp-content/plugins/wiki-embed/WikiEmbed.php on line 112

Notice: Trying to access array offset on value of type bool in /home1/freesand/public_html/wp-content/plugins/wiki-embed/WikiEmbed.php on line 116
GoPiGo 小汽車︰朝向目標前進《二》 | FreeSandal

GoPiGo 小汽車︰朝向目標前進《二》

雖然不知為何

OpenCV

OpenCV的全稱是Open Source Computer Vision Library,是一個跨平台的電腦視覺庫。OpenCV是由英特爾公司發起並參與開發,以BSD授權條款授權發行,可以在商業和研究領域中免費使用。OpenCV可用於開發實時的圖像處理電腦視覺以及模式識別程式 。該程式庫也可以使用英特爾公司的IPP進行加速處理。

歷史

OpenCV專案最早由英特爾公司於1999年啟動,致力於CPU密集型的任務,是一個包括如光線追蹤3D顯示的計劃的一部分。早期OpenCV的主要目標是

  • 為推進機器視覺的研究,提供一套開源且最佳化的基礎庫。不重複發明輪子。
  • 提供一個共同的基礎庫,使得開發人員的代碼更容易閱讀和轉讓,促進了知識的傳播。
  • 通過提供一個不需要開源或免費的軟體許可,促進商業應用軟體的開發。
  • OpenCV現在也整合了對CUDA的支援.

OpenCV的第一個預覽版本於2000年在IEEE Conference on Computer Vision and Pattern Recognition公開,並且後續提供了五個測試版本。1.0版本於2006年釋出。

OpenCV的第二個主要版本是2009年10月的OpenCV 2.0。該版本的主要更新包括C++介面,更容易、更類型安全的模式,新的函式,以及對現有實現的最佳化(特別是多核心方面)。現在每6個月就會有一個官方版本[1],並由一個商業公司贊助的獨立小組進行開發。

在2012年8月,OpenCV的支援由一個非盈利性組織(OpenCV.org)來提供,並保留了一個開發者網站[2]和用戶網站。[3]

 

又回到『Intel』老家?

OpenCV 3.2

Dear OpenCV users!

1 year after 3.1 release and after the OpenCV core team has moved back to Intel we are pleased to announce OpenCV 3.2 release, with tons of improvements and bug fixes. 969 patches have been merged and 478 issues (bugs & feature requests) have been closed.

Big thanks to everyone who participated! If you contributed something but your name is missing, please, let us know.

Merry Christmas and Happy New Year!

 

樂見新版有許多改變!

Changes

The detailed list of changes since 3.1 can be found at https://github.com/opencv/opencv/wiki/ChangeLog. Here is the short summary:

Results from 11 GSoC 2016 projects have been submitted to the library:

  • Ambroise Moreau (Delia Passalacqua) – sinusoidal patterns for structured light and phase unwrapping module
  • Alexander Bokov (Maksim Shabunin) – DIS optical flow (excellent dense optical flow algorithm that is both significantly better and significantly faster than Farneback’s algorithm – our baseline), and learning-based color constancy algorithms implementation
  • Tyan Vladimir (Antonella Cascitelli) – CNN based tracking algorithm (GOTURN)
  • Vladislav Samsonov (Ethan Rublee) – PCAFlow and Global Patch Collider algorithms implementation
  • João Cartucho (Vincent Rabaud) – Multi-language OpenCV Tutorials in Python, C++ and Java
  • Jiri Horner (Bo Li) – New camera model and parallel processing for stitching pipeline
  • Vitaliy Lyudvichenko (Anatoly Baksheev) – Optimizations and improvements of dnn module
  • Iric Wu (Vadim Pisarevsky) – Base64 and JSON support for file storage. Use names like “myfilestorage.xml?base64” when writing file storage to store big chunks of numerical data in base64-encoded form.
  • Edgar Riba (Manuele Tamburrano, Stefano Fabri) – tiny_dnn improvements and integration
  • Yida Wang (Manuele Tamburrano, Stefano Fabri) – Quantization and semantic saliency detection with tiny_dnn
  • Anguelos Nicolaou (Lluis Gomez) – Word-spotting CNN based algorithm

Big thanks to all the participants!

There have been many contributions besides GSoC:

  • Greatly improved and accelerated dnn module in opencv_contrib:
    • Many new layers, including deconvolution, LSTM etc.
    • Support for semantic segmentation and SSD networks with samples.
    • TensorFlow importer + sample that runs Inception net by Google.
  • More image formats and camera backends supported
  • Interactive camera calibration app
  • Multiple algorithms implemented in opencv_contrib
  • Supported latest OSes, including Ubuntu 16.04 LTS and OSX 10.12
  • Lot’s of optimizations for IA and ARM archs using parallelism, vector instructions and new OpenCL kernels.
  • OpenCV now can use vendor-provided OpenVX and LAPACK/BLAS (including Intel MKL, Apple’s Accelerate, OpenBLAS and Atlas) for acceleration

 

豈可不嚐鮮乎??只好再嚐試編譯也!!

# Python2 , python3 一箭雙鵰
sudo apt-get install build-essential git cmake pkg-config
sudo apt-get install libtiff5-dev libjasper-dev libpng12-dev
sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev
sudo apt-get install libgtk2.0-dev
sudo apt-get install libatlas-base-dev gfortran
sudo apt-get install python-dev
sudo pip install numpy
sudo pip-3.2 install numpy
git clone https://github.com/Itseez/opencv.git
git clone https://github.com/Itseez/opencv_contrib.git
cd opencv
mkdir build
cd build/
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules -D BUILD_EXAMPLES=ON ..
make -j4
sudo make install
sudo ldconfig

 

pi@raspberrypi:~ python Python 2.7.9 (default, Sep 17 2016, 20:26:04)  [GCC 4.9.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import cv2 >>> print (cv2.__version__) 3.2.0-dev >>>  </pre>   <pre class="lang:default decode:true ">pi@raspberrypi:~ python3
Python 3.4.2 (default, Oct 19 2014, 13:31:11) 
[GCC 4.9.1] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> print (cv2.__version__)
3.2.0-dev
>>>

 

自己可知耶☆☆

 

 

 

 

 

 

 

 

輕。鬆。學。部落客